Module: Searchlogic::NamedScopes::Ordering

Included in:
ActiveRecord::Base
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

#condition?(name) ⇒ Boolean

:nodoc:

Returns:

  • (Boolean)


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

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