Method: MongoModel::Scope#finder_options
- Defined in:
- lib/mongomodel/support/scope.rb
#finder_options ⇒ Object
130 131 132 133 134 135 136 137 138 |
# File 'lib/mongomodel/support/scope.rb', line 130 def @finder_options ||= {}.tap do |result| result[:conditions] = finder_conditions if where_values.any? result[:select] = select_values if select_values.any? result[:order] = order_values if order_values.any? result[:limit] = limit_value if limit_value.present? result[:offset] = offset_value if offset_value.present? end end |