Skip to content

Commit

Permalink
AV expects options[:locals] to be a Hash
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Oct 15, 2009
1 parent e19ab99 commit 5b8e627
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions actionmailer/lib/action_mailer/base.rb
Expand Up @@ -599,6 +599,7 @@ def render_message(method_name, body)
end end


def render(opts) def render(opts)
opts[:locals] ||= {}
layout, file = opts.delete(:layout), opts[:file] layout, file = opts.delete(:layout), opts[:file]


begin begin
Expand Down

0 comments on commit 5b8e627

Please sign in to comment.