Module: Searchlogic::NamedScopes::AssociationOrdering

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

Overview

Handles dynamically creating order named scopes for associations:

User.has_many :orders
Order.has_many :line_items
LineItem

User.ascend_by_orders_line_items_id

See the README for a more detailed explanation.

Instance Method Summary collapse

Instance Method Details

#condition?(name) ⇒ Boolean

:nodoc:



13
14
15
# File 'lib/searchlogic/named_scopes/association_ordering.rb', line 13

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