Method: OrderQuery#seek
- Defined in:
- lib/order_query.rb
#seek(*spec) ⇒ OrderQuery::Point
21 22 23 24 25 26 27 28 29 |
# File 'lib/order_query.rb', line 21 def seek(*spec) fst = spec.first if fst.nil? || fst.is_a?(ActiveRecord::Relation) || fst.is_a?(ActiveRecord::Base) scope = spec.shift end scope ||= self.class.all scope.seek(*spec).at(self) end |