Method: Rql::Scope::BlockMethods#order

Defined in:
lib/rql/scope/block_methods.rb

#order { ... } ⇒ Rql::Scope::RqlScope

Orders by specified attributes

Yields:

  • RQL block defining the attributes order by

Returns:



32
33
34
# File 'lib/rql/scope/block_methods.rb', line 32

def order(&block)
  scope.order(*build_attributes(&block))
end