Sha256: 1d158fba56125c6f95e2abab90cfeaec9fd1e5d4e2e6e27234bb2396d6d0fea9
Contents?: true
Size: 836 Bytes
Versions: 5
Compression:
Stored size: 836 Bytes
Contents
module Superstore module QueryMethods def select!(*values) self.select_values += values.flatten self end def select(*values, &block) if block_given? to_a.select(&block) else clone.select!(*values) end end def where!(*values) self.where_values += values.flatten self end def where(*values) clone.where! values end def where_ids!(*ids) self.id_values += ids.flatten self end def where_ids(*ids) clone.where_ids! ids end def limit!(value) self.limit_value = value self end def limit(value) clone.limit! value end def order!(*values) self.order_values = values.flatten self end def order(*values) clone.order! values end end end
Version data entries
5 entries across 5 versions & 1 rubygems