Commit 88fa21a74180137e9f620379243b52c9aa7248db
1 parent
cb8861b0
Exists in
master
and in
29 other branches
ActionItem181: loading local settings if available
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1455 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
config/environment.rb
... | ... | @@ -95,3 +95,9 @@ require 'acts_as_having_boxes' |
95 | 95 | require 'acts_as_having_settings' |
96 | 96 | require 'hacked_after_create' |
97 | 97 | |
98 | +# load a local configuration if present | |
99 | +lambda do |localconfig| | |
100 | + if File.exists?(localconfig) | |
101 | + require localconfig | |
102 | + end | |
103 | +end.call(File.join(RAILS_ROOT, 'config', 'local.rb')) | ... | ... |