Skip to content

Commit

Permalink
Fix parsing associations (Parse#extract_array)
Browse files Browse the repository at this point in the history
  • Loading branch information
minktom authored and hubert committed Jul 31, 2015
1 parent 82a8220 commit 06d198b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/her/model/parse.rb
Expand Up @@ -169,7 +169,7 @@ def included_root_element
#
# @private
def extract_array(request_data)
if active_model_serializers_format? || json_api_format?
if request_data[:data].is_a?(Hash) && (active_model_serializers_format? || json_api_format?)
request_data[:data][pluralized_parsed_root_element]
else
request_data[:data]
Expand Down

0 comments on commit 06d198b

Please sign in to comment.