Skip to content

Commit 3a49314

Browse files
committed
Merge pull request #602 from lime/records-all
Return a relation instead of a class from Resource.records
2 parents 3a07db6 + 79abdec commit 3a49314

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/jsonapi/resource.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ def find_by_key(key, options = {})
583583
# Override this method if you want to customize the relation for
584584
# finder methods (find, find_by_key)
585585
def records(_options = {})
586-
_model_class
586+
_model_class.all
587587
end
588588

589589
def verify_filters(filters, context = nil)

0 commit comments

Comments
 (0)