Skip to content

shashi-we/test_task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby on Rails Test Task

We can use ConfigSetting model to store config values in following manner:

1.) Create or update any key:

ConfigSetting.any_key = any_value #value can be String, Fixnum, Float, Boolean

2.) To get value for any stored key

ConfigSetting.any_key #it will return the stored value for 'any_key', if not stored, ot woll return 'nil'

3.) Delete any configuration

ConfigSetting.delete(any_key) #it will delete record for corrosponding key

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors