Sha256: 1aafcb7c4046e7c4ebbecd799f13214fc2c2c8dfacc015229303b51f560d8aae
Contents?: true
Size: 385 Bytes
Versions: 1
Compression:
Stored size: 385 Bytes
Contents
module ActiveRecord class Relation def qry_options(*args) DirectiveRecord::Relation.new(self).qry_options(*args) end def to_qry(*args) klass.to_qry qry_options(*args) end def qry(*args) klass.qry qry_options(*args) end alias :original_size :size def size loaded? ? original_size : qry("COUNT(*)")[0][0] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
directiverecord-0.1.9 | lib/directive_record/gem_ext/active_record/relation.rb |