to order by position we can just use normal order syntax right? #53
Replies: 1 comment
-
|
That's correct. You can also just scope your relation with the default order you want so you don't need to think about it:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I mean if I have list with model named item and list
item.rb
then I just need to write
list.items.order(position: :asc)right?Beta Was this translation helpful? Give feedback.
All reactions