Exception: Sphinxsearchlogic::Search::UnknownConditionError
- Inherits:
-
StandardError
- Object
- StandardError
- Sphinxsearchlogic::Search::UnknownConditionError
- Defined in:
- lib/sphinxsearchlogic.rb
Overview
Is an invalid condition is used this error will be raised. Ex:
User.search(:unkown => true)
Where unknown is not a valid named scope for the User model.
Instance Method Summary collapse
-
#initialize(condition) ⇒ UnknownConditionError
constructor
A new instance of UnknownConditionError.
Constructor Details
#initialize(condition) ⇒ UnknownConditionError
Returns a new instance of UnknownConditionError.
25 26 27 28 |
# File 'lib/sphinxsearchlogic.rb', line 25 def initialize(condition) msg = "The #{condition} is not a valid condition. You may only use conditions that map to a thinking sphinx named scope or attribute." super(msg) end |