Module ScopedSearch
In: lib/scoped_search/definition.rb
lib/scoped_search/query_builder.rb
lib/scoped_search/rails_helper.rb
lib/scoped_search/auto_complete_builder.rb
lib/scoped_search.rb

ScopedSearch is the base module for the scoped_search plugin. This file defines some modules and exception classes, loads the necessary files, and installs itself in ActiveRecord.

The ScopedSearch module defines two modules that can be mixed into ActiveRecord::Base as class methods. ScopedSearch::ClassMethods will register the scoped_search class function, which can be used to define the search fields. ScopedSearch::BackwardsCompatibility will register the searchable_on method for backwards compatibility with previous scoped_search versions (1.x).

Classes and Modules

Module ScopedSearch::BackwardsCompatibility
Module ScopedSearch::ClassMethods
Module ScopedSearch::QueryLanguage
Module ScopedSearch::RailsHelper
Class ScopedSearch::AutoCompleteBuilder
Class ScopedSearch::Definition
Class ScopedSearch::DefinitionError
Class ScopedSearch::Exception
Class ScopedSearch::QueryBuilder
Class ScopedSearch::QueryNotSupported

Constants

LOGICAL_INFIX_OPERATORS = ScopedSearch::QueryLanguage::Parser::LOGICAL_INFIX_OPERATORS
LOGICAL_PREFIX_OPERATORS = ScopedSearch::QueryLanguage::Parser::LOGICAL_PREFIX_OPERATORS
NULL_PREFIX_OPERATORS = ScopedSearch::QueryLanguage::Parser::NULL_PREFIX_OPERATORS
NULL_PREFIX_COMPLETER = ['has']
COMPARISON_OPERATORS = ScopedSearch::QueryLanguage::Parser::COMPARISON_OPERATORS
PREFIX_OPERATORS = LOGICAL_PREFIX_OPERATORS + NULL_PREFIX_OPERATORS
VERSION = "2.3.6"   The current scoped_search version. Do not change thisvalue by hand, because it will be updated automatically by the gem release script.

[Validate]