lib/shamu/json_api/rails/responder.rb in shamu-0.0.11 vs lib/shamu/json_api/rails/responder.rb in shamu-0.0.13

- old
+ new

@@ -33,16 +33,17 @@ controller.json_collection resource, **given_options else controller.json_resource resource, **given_options end - super json, given_options + super json.to_json, given_options end # @visibility private def display_errors - controller.render format => controller.json_validation_errors( resource_errors ), :status => :unprocessable_entity # rubocop:disable Metrics/LineLength + controller.render format => controller.json_validation_errors( resource_errors ).to_json, + :status => :unprocessable_entity end private def validation_resource?( resource ) @@ -50,6 +51,6 @@ end end end end -end \ No newline at end of file +end