mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Ruby's new Hash syntax applied in actionmailer
This commit is contained in:
parent
c994e10862
commit
3134605391
4 changed files with 5 additions and 5 deletions
|
@ -517,8 +517,8 @@ module ActionMailer
|
|||
|
||||
def process(method_name, *args) #:nodoc:
|
||||
payload = {
|
||||
:mailer => self.class.name,
|
||||
:action => method_name
|
||||
mailer: self.class.name,
|
||||
action: method_name
|
||||
}
|
||||
|
||||
ActiveSupport::Notifications.instrument("process.action_mailer", payload) do
|
||||
|
|
|
@ -1 +1 @@
|
|||
<%= t('.greet_user', :name => 'lifo') %>
|
||||
<%= t('.greet_user', name: 'lifo') %>
|
|
@ -1 +1 @@
|
|||
Hey Ho, <%= render :partial => "subtemplate" %>
|
||||
Hey Ho, <%= render partial: "subtemplate" %>
|
|
@ -120,7 +120,7 @@ class BaseMailer < ActionMailer::Base
|
|||
end
|
||||
|
||||
def with_nil_as_return_value
|
||||
mail(:template_name => "welcome")
|
||||
mail(template_name: "welcome")
|
||||
nil
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue