From 648ca553730e3c075ec115d4367616369c4c5a9e Mon Sep 17 00:00:00 2001 From: "veaceslav.solotchi@4finance.com" Date: Tue, 22 Aug 2017 11:04:36 +0200 Subject: [PATCH] redundant check --- lib/acts_as_api/rendering.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/acts_as_api/rendering.rb b/lib/acts_as_api/rendering.rb index 6f05947..5bf2f52 100644 --- a/lib/acts_as_api/rendering.rb +++ b/lib/acts_as_api/rendering.rb @@ -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