Skip to content

Commit

Permalink
redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Aug 22, 2017
1 parent 874ccfb commit 648ca55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_api/rendering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def render_for_api(api_template_or_options, render_options)
api_response = api_response.collect { |f| { api_root_name.singularize => f } }
end

if meta_hash || ActsAsApi::Config.add_root_node_for.include?(api_format)
if ActsAsApi::Config.add_root_node_for.include?(api_format)
api_response = { api_root_name.to_sym => api_response }
end

Expand Down

0 comments on commit 648ca55

Please sign in to comment.