Skip to content

Commit

Permalink
Fix regression from rails-api#1695 where JSONAPI renders empty meta
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed May 2, 2016
1 parent 1cc7e8e commit c466dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_model_serializers/adapter/json_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def success_document
hash[:links].update(pagination_links_for(serializer))
end

hash[:meta] = instance_options[:meta] if instance_options[:meta].is_a?(Hash)
hash[:meta] = instance_options[:meta] unless instance_options[:meta].blank?

hash
end
Expand Down

0 comments on commit c466dc9

Please sign in to comment.