Skip to content

Commit 7016fe3

Browse files
author
Michal Trzcinka
committed
Add to_ary method to Query::Builder class, so that nested resources work correctly in Rails forms
1 parent ba1136b commit 7016fe3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/jsonapi/consumer/query/builder.rb

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def to_a
8989
@to_a ||= find
9090
end
9191
alias all to_a
92+
alias to_ary to_a
9293

9394
def find(args = {})
9495
case args

0 commit comments

Comments
 (0)