Sha256: 5b5d0089fcac9233908183d328e1b1e807202f00827604d353e77f92f1642a60

Contents?: true

Size: 458 Bytes

Versions: 31

Compression:

Stored size: 458 Bytes

Contents

module Searchlogic
  class Search
    # 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.
    class UnknownConditionError < StandardError
      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
    end
  end
end

Version data entries

31 entries across 31 versions & 4 rubygems

Version Path
searchlogic-2.5.19 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.18 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.17 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.16 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.15 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.14 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.13 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.12 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.11 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.10 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.9 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.8 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.7 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.6 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.5 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.4 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.3 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.2 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.1 lib/searchlogic/search/unknown_condition_error.rb
searchlogic-2.5.0 lib/searchlogic/search/unknown_condition_error.rb