Skip to content

Commit

Permalink
point to attributes if no pointer is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeWoodward committed Sep 2, 2018
1 parent 8b885e0 commit 94965a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsonapi/rails/serializable_active_model_errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class SerializableActiveModelError < Serializable::Error
end

source do
pointer @pointer unless @pointer.nil?
pointer(@pointer || '/data/attributes')
end
end

Expand Down

0 comments on commit 94965a5

Please sign in to comment.