We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4bab02 commit bcdbbc7Copy full SHA for bcdbbc7
1 file changed
lib/simple_json/simple_json_renderable.rb
@@ -29,7 +29,7 @@ def render_to_body(options)
29
# use super when any of [:body, :plain, :html] exist in options
30
return super if self.class::RENDER_FORMATS_IN_PRIORITY.any? { |key| options.key? key }
31
32
- template_name = template_name(options[:template] || action_name)
+ template_name = template_name(options[:template] || options[:action] || action_name)
33
if options.key?(:json)
34
process_options(options)
35
@rendered_format = 'application/json; charset=utf-8'
0 commit comments