1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #12884 from akshay-vishnoi/refactor

Ruby's new Hash syntax applied in actionmailer
This commit is contained in:
Guillermo Iguaran 2013-11-14 00:22:57 -08:00
commit 48ea089907
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