settingslogic icon indicating copy to clipboard operation
settingslogic copied to clipboard

Doesn't work with nesting

Open ghost opened this issue 16 years ago • 1 comments

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...

ghost avatar Oct 22 '09 12:10 ghost

Please ignore this one. Unlike what the documentation suggests, I figured out the hard way that:

  1. Config, Configuration as class names wreak havoc
  2. 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.

ghost avatar Oct 22 '09 13:10 ghost