Module: Searchlogic::NamedScopes::Ordering

Defined in:
lib/searchlogic/named_scopes/ordering.rb

Overview

Handles dynamically creating named scopes for ordering by columns. Example:

User.ascend_by_id
User.descend_by_username

See the README for a more detailed explanation.

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) condition?(name)

:nodoc:

Returns:

  • (Boolean)


10
11
12
# File 'lib/searchlogic/named_scopes/ordering.rb', line 10

def condition?(name) # :nodoc:
  super || ordering_condition?(name)
end