From 88fa21a74180137e9f620379243b52c9aa7248db Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Wed, 20 Feb 2008 22:33:30 +0000 Subject: [PATCH] ActionItem181: loading local settings if available --- config/environment.rb | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/config/environment.rb b/config/environment.rb index 47f09ef..d4c6d96 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -95,3 +95,9 @@ require 'acts_as_having_boxes' require 'acts_as_having_settings' require 'hacked_after_create' +# load a local configuration if present +lambda do |localconfig| + if File.exists?(localconfig) + require localconfig + end +end.call(File.join(RAILS_ROOT, 'config', 'local.rb')) -- libgit2 0.21.2