lib/superstore/scope/query_methods.rb in superstore-1.0.2 vs lib/superstore/scope/query_methods.rb in superstore-1.0.3

- old
+ new

@@ -39,9 +39,18 @@ def limit(value) clone.limit! value end + def order!(*values) + self.order_values = values.flatten + self + end + + def order(*values) + clone.order! values + end + def to_a select_records end end end