From baf68d86a464e2760d6bee8486e3d194832b7eed Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Sat, 9 Nov 2013 01:23:36 +0400 Subject: [PATCH] Fixed: uninitialized constant Localeapp --- config/initializers/localeapp.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/initializers/localeapp.rb b/config/initializers/localeapp.rb index e8a03bf62..f9d8db4f4 100644 --- a/config/initializers/localeapp.rb +++ b/config/initializers/localeapp.rb @@ -1,3 +1,5 @@ -Localeapp.configure do |config| - config.sending_environments = [] +if Rails.env.development? + Localeapp.configure do |config| + config.sending_environments = [] + end end \ No newline at end of file