Apparently Rails 3.1 does not like @headers as ivar

This commit is contained in:
José Valim 2012-12-13 09:59:36 +01:00
parent 30ab6f923d
commit 86f0bff332
3 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
<p>Welcome <%= @headers[:to] %>!</p>
<p>Welcome <%= @email %>!</p>
<p>You can confirm your account email through the link below:</p>

View File

@ -38,13 +38,14 @@ module Devise
headers.merge!(resource.headers_for(action))
end
@headers = headers
@email = headers[:to]
headers
end
def mailer_reply_to(mapping)
mailer_sender(mapping, :reply_to)
end
def mailer_from(mapping)
mailer_sender(mapping, :from)
end

View File

@ -1,4 +1,4 @@
Welcome <%= @headers[:to] %>!
Welcome <%= @email %>!
You can confirm your account through the link below: