Skip to content

Commit

Permalink
Add #to_hash conversion protocol to object serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvery authored and shishirmk committed Feb 22, 2018
1 parent 08cee7b commit 95c136f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/fast_jsonapi/object_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def serializable_hash

hash_for_one_record
end
alias_method :to_hash, :serializable_hash

def hash_for_one_record
serializable_hash = { data: nil }
Expand Down

0 comments on commit 95c136f

Please sign in to comment.