Apparently Rails 3.1 does not like @headers as ivar
This commit is contained in:
parent
30ab6f923d
commit
86f0bff332
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Welcome <%= @headers[:to] %>!
|
||||
Welcome <%= @email %>!
|
||||
|
||||
You can confirm your account through the link below:
|
||||
|
||||
|
|
Loading…
Reference in New Issue