Module: Ransack::Adapters::Mongoid::Attributes::OrderPredications

Included in:
Attribute
Defined in:
lib/ransack/adapters/mongoid/attributes/order_predications.rb

Instance Method Summary collapse

Instance Method Details

#ascObject


6
7
8
# File 'lib/ransack/adapters/mongoid/attributes/order_predications.rb', line 6

def asc
  { name => :asc }
end

#descObject


10
11
12
# File 'lib/ransack/adapters/mongoid/attributes/order_predications.rb', line 10

def desc
  { name => :desc }
end