You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stevenhaddox edited this page Aug 31, 2011
·
3 revisions
If you want to be able to use your settingslogic Setting class within your Rails initializers it's fairly easy. Just move your app/models/setting.rb model file to live under your lib folder. This will give you access to all Settings within your initializers as well as your application code.
Hope this helps someone else as I really wanted to enable / disable things (like Mailcatcher configs) in my initializers but wanted those flags to exist on a per-server basis.