Exception: Searchlogic::Search::UnknownConditionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/searchlogic/search.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

Constructor Details

#initialize(condition) ⇒ UnknownConditionError

Returns a new instance of UnknownConditionError.



35
36
37
38
# File 'lib/searchlogic/search.rb', line 35

def initialize(condition)
  msg = "The #{condition} is not a valid condition. You may only use conditions that map to a named scope"
  super(msg)
end