Made multi coop installation available as an option in app_config.yml.
This commit is contained in:
parent
f4edfacd91
commit
fd97c1fc60
4 changed files with 16 additions and 9 deletions
|
|
@ -13,10 +13,12 @@ module Foodsoft
|
|||
end
|
||||
|
||||
def config(rails_env = @@env)
|
||||
raise "No config for this environment (or subdomain) available!" if @@configs[rails_env].nil?
|
||||
@@configs[rails_env].symbolize_keys
|
||||
end
|
||||
|
||||
def database(rails_env = @@env)
|
||||
raise "No database for this environment (or subdomain) available!" if @@databases[rails_env].nil?
|
||||
@@databases[rails_env].symbolize_keys
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue