diff options
Diffstat (limited to 'actionpack/lib/action_controller/abstract/renderer.rb')
-rw-r--r-- | actionpack/lib/action_controller/abstract/renderer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/abstract/renderer.rb b/actionpack/lib/action_controller/abstract/renderer.rb index 537335aa0e..19a64b0c38 100644 --- a/actionpack/lib/action_controller/abstract/renderer.rb +++ b/actionpack/lib/action_controller/abstract/renderer.rb @@ -25,8 +25,8 @@ module AbstractController self.response_body = render_to_string(template) end - def render_to_string(template = action_name) - tmp = view_paths.find_by_parts(template.to_s, formats, _prefix) + def render_to_string(template = action_name, prefix = true) + tmp = view_paths.find_by_parts(template.to_s, formats, (_prefix if prefix)) _render_template(tmp) end |