allow to put foodcoop config in database
This commit is contained in:
parent
a39c56fdf1
commit
dd3ac0971c
2 changed files with 1 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue