Sha256: 62fce5e1283bd8e8ffec21b2a91a4d54f4888718d386ad48d6b96458726225b8
Contents?: true
Size: 464 Bytes
Versions: 1
Compression:
Stored size: 464 Bytes
Contents
module ActiveRecord module FinderMethods def ordered_relation if order_values.empty? && (implicit_order_column || primary_key) if implicit_order_column.present? && implicit_order_column != primary_key order(arel_attribute(implicit_order_column).asc, arel_attribute(primary_key).asc) else order(arel_attribute(implicit_order_column || primary_key).asc) end else self end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-uuid-order-0.8.0 | lib/activerecord-uuid-order/core_extensions.rb |