]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/action_mailer.rb
Fix tests to cope with stricter route enforcement in rails 2.3.6
[rails.git] / config / initializers / action_mailer.rb
index e6181072bcb46e12390997d1767907c106fb8c1b..ad729174fde5e8b427d7c14d84f66d18e78e2fd2 100644 (file)
@@ -9,10 +9,8 @@ ActionMailer::Base.smtp_settings = {
 # Monkey patch to allow sending of messages in specific locales
 module ActionMailer
   class Base
-    adv_attr_accessor :locale
-
     def mail_with_locale(*args)
-      old_locale= I18n.locale
+      old_locale = I18n.locale
 
       begin
         I18n.locale = @locale