settingslogic
settingslogic copied to clipboard
Doesn't work with nesting
Settings.something <-- Works for me Settings.something.other <-- Doesn't work at all
I am on Rails version 2.3.4 and get a NoMethodError on script/console from ActionController of all things! Really strange...
Please ignore this one. Unlike what the documentation suggests, I figured out the hard way that:
- Config, Configuration as class names wreak havoc
- You can't have a key called app
Also, Instead of polluting the app/models directory; the RAILS_ROOT/lib is an ideal place for the Settings class.