Permalink
Browse files

Merge pull request #12884 from akshay-vishnoi/refactor

Ruby's new Hash syntax applied in actionmailer
  • Loading branch information...
guilleiguaran committed Nov 14, 2013
2 parents 93999ed + 3134605 commit 48ea0899074629203d84e2aea02593e893b5a2a4
@@ -517,8 +517,8 @@ def initialize(method_name=nil, *args)
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 @@ def without_mail_call
end
def with_nil_as_return_value
- mail(:template_name => "welcome")
+ mail(template_name: "welcome")
nil
end

0 comments on commit 48ea089

Please sign in to comment.