@@ -606,8 +606,8 @@ def order!(*args) # :nodoc:
606
606
self
607
607
end
608
608
609
- # Allows to specify an <code >ORDER BY</code > clause to a query based on a given +column+,
610
- # ordered and filtered by the specific set of +values+.
609
+ # Applies an <tt >ORDER BY</tt > clause based on a given +column+,
610
+ # ordered and filtered by a specific set of +values+.
611
611
#
612
612
# User.in_order_of(:id, [1, 5, 3])
613
613
# # SELECT "users".* FROM "users"
@@ -625,7 +625,7 @@ def order!(*args) # :nodoc:
625
625
# enum :status, [ :active, :archived ]
626
626
# end
627
627
#
628
- # Conversation.in_order_of(:status, %w( archived active) )
628
+ # Conversation.in_order_of(:status, [: archived, : active] )
629
629
# # SELECT "conversations".* FROM "conversations"
630
630
# # WHERE "conversations"."status" IN (1, 0)
631
631
# # ORDER BY CASE
@@ -635,7 +635,7 @@ def order!(*args) # :nodoc:
635
635
#
636
636
# +values+ can also include +nil+.
637
637
#
638
- # Conversation.in_order_of(:status, %w( nil archived active) )
638
+ # Conversation.in_order_of(:status, [ nil, : archived, : active] )
639
639
# # SELECT "conversations".* FROM "conversations"
640
640
# # WHERE ("conversations"."status" IN (1, 0) OR "conversations"."status" IS NULL)
641
641
# # ORDER BY CASE
0 commit comments