allow to put foodcoop config in database

This commit is contained in:
wvengen 2014-03-16 02:07:54 +01:00
parent a39c56fdf1
commit dd3ac0971c
2 changed files with 1 additions and 13 deletions

View file

@ -26,7 +26,7 @@ class FoodsoftConfig
# Provides a nice accessor for config values
# FoodsoftConfig[:name] # => 'FC Test'
def [](key)
config[key]
RailsSettings::CachedSettings["foodcoop.#{self.scope}.#{key}"] || config[key]
end
# Loop through each foodcoop and executes the given block after setup config and database