diff options
author | José Valim <jose.valim@gmail.com> | 2009-10-21 21:26:10 -0200 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-11-01 02:23:48 +0100 |
commit | e9667ad1f0e74694d9df16fa2819a1679ee21e23 (patch) | |
tree | 9b2a03874509551184f4405aa40aebc41f433d60 /actionmailer/lib/action_mailer | |
parent | 418c3f801cd436f011b37fe69059073e69e05084 (diff) | |
download | rails-e9667ad1f0e74694d9df16fa2819a1679ee21e23.tar.gz rails-e9667ad1f0e74694d9df16fa2819a1679ee21e23.tar.bz2 rails-e9667ad1f0e74694d9df16fa2819a1679ee21e23.zip |
Make tests run without deprecation warning (just one left).
Diffstat (limited to 'actionmailer/lib/action_mailer')
-rw-r--r-- | actionmailer/lib/action_mailer/deprecated_body.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionmailer/lib/action_mailer/deprecated_body.rb b/actionmailer/lib/action_mailer/deprecated_body.rb index 982f098bc5..50ff262432 100644 --- a/actionmailer/lib/action_mailer/deprecated_body.rb +++ b/actionmailer/lib/action_mailer/deprecated_body.rb @@ -18,11 +18,11 @@ module ActionMailer def create_parts if String === @body ActiveSupport::Deprecation.warn('body is deprecated. To set the body with a text ' << - 'call render(:text => "body").', caller[7,1]) + 'call render(:text => "body").', caller[0,10]) self.response_body = @body elsif @body.is_a?(Hash) && !@body.empty? ActiveSupport::Deprecation.warn('body is deprecated. To set assigns simply ' << - 'use instance variables', caller[7,1]) + 'use instance variables', caller[0,10]) @body.each { |k, v| instance_variable_set(:"@#{k}", v) } end end |