mirror of
https://github.com/github/rails.git
synced 2026-01-29 00:08:15 -05:00
Ruby 1.9: Call join on template_root instead of to_s
This commit is contained in:
@@ -529,7 +529,7 @@ module ActionMailer #:nodoc:
|
|||||||
end
|
end
|
||||||
|
|
||||||
def render_message(method_name, body)
|
def render_message(method_name, body)
|
||||||
render :file => method_name, :body => body, :use_full_path => true
|
render :file => method_name, :body => body
|
||||||
end
|
end
|
||||||
|
|
||||||
def render(opts)
|
def render(opts)
|
||||||
@@ -537,12 +537,11 @@ module ActionMailer #:nodoc:
|
|||||||
if opts[:file] && opts[:file] !~ /\//
|
if opts[:file] && opts[:file] !~ /\//
|
||||||
opts[:file] = "#{mailer_name}/#{opts[:file]}"
|
opts[:file] = "#{mailer_name}/#{opts[:file]}"
|
||||||
end
|
end
|
||||||
opts[:use_full_path] = true
|
|
||||||
initialize_template_class(body).render(opts)
|
initialize_template_class(body).render(opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
def template_path
|
def template_path
|
||||||
"#{template_root}/#{mailer_name}"
|
"#{template_root.join}/#{mailer_name}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize_template_class(assigns)
|
def initialize_template_class(assigns)
|
||||||
|
|||||||
Reference in New Issue
Block a user