aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib/action_mailer/deprecated_body.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-10-21 21:26:10 -0200
committerYehuda Katz <wycats@gmail.com>2009-11-01 02:23:48 +0100
commite9667ad1f0e74694d9df16fa2819a1679ee21e23 (patch)
tree9b2a03874509551184f4405aa40aebc41f433d60 /actionmailer/lib/action_mailer/deprecated_body.rb
parent418c3f801cd436f011b37fe69059073e69e05084 (diff)
downloadrails-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/deprecated_body.rb')
-rw-r--r--actionmailer/lib/action_mailer/deprecated_body.rb4
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