1
0
Fork 0
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:
Mr A 2013-11-14 13:41:37 +05:30
parent c994e10862
commit 3134605391
4 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -1 +1 @@
<%= t('.greet_user', :name => 'lifo') %>
<%= t('.greet_user', name: 'lifo') %>

View file

@ -1 +1 @@
Hey Ho, <%= render :partial => "subtemplate" %>
Hey Ho, <%= render partial: "subtemplate" %>

View file

@ -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