Skip to content

Commit 94965a5

Browse files
committed
point to attributes if no pointer is passed
1 parent 8b885e0 commit 94965a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jsonapi/rails/serializable_active_model_errors.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SerializableActiveModelError < Serializable::Error
1111
end
1212

1313
source do
14-
pointer @pointer unless @pointer.nil?
14+
pointer(@pointer || '/data/attributes')
1515
end
1616
end
1717

0 commit comments

Comments
 (0)