Module: Arel::OrderPredications

Included in:
Attributes::Attribute, Nodes::InfixOperation, Nodes::NodeExpression, Nodes::SqlLiteral
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/arel/order_predications.rb

Instance Method Summary collapse

Instance Method Details

#ascObject



5
6
7
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/arel/order_predications.rb', line 5

def asc
  Nodes::Ascending.new self
end

#descObject



9
10
11
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/arel/order_predications.rb', line 9

def desc
  Nodes::Descending.new self
end