Module: Searchlogic::NamedScopes::OrConditions

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

Overview

Handles dynamically creating named scopes for 'OR' conditions. Please see the README for a more detailed explanation.

Defined Under Namespace

Classes: NoConditionSpecifiedError, UnknownConditionError

Instance Method Summary collapse

Instance Method Details

#condition?(name) ⇒ Boolean

:nodoc:

Returns:

  • (Boolean)


9
10
11
# File 'lib/searchlogic/named_scopes/or_conditions.rb', line 9

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

#named_scope_options(name) ⇒ Object

:nodoc:



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

def named_scope_options(name) # :nodoc:
  super || super(or_conditions(name).try(:join, "_or_"))
end