Exception: Searchlogic::Search::UnknownConditionError

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



9
10
11
12
# File 'lib/searchlogic/search/unknown_condition_error.rb', line 9

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