Module: SearchCop

Defined in:
lib/search_cop.rb,
lib/search_cop/helpers.rb,
lib/search_cop/version.rb,
lib/search_cop/query_info.rb,
lib/search_cop/search_scope.rb,
lib/search_cop/query_builder.rb,
lib/search_cop/grammar_parser.rb,
lib/search_cop/visitors/mysql.rb,
lib/search_cop/visitors/sqlite.rb,
lib/search_cop/visitors/visitor.rb,
lib/search_cop/visitors/postgres.rb

Defined Under Namespace

Modules: ClassMethods, Helpers, Parser, Visitors Classes: Error, GrammarParser, HashParser, IncompatibleDatatype, NoSearchableAttributes, ParseError, QueryBuilder, QueryInfo, Reflection, RuntimeError, SearchScope, SpecificationError, UnknownAttribute, UnknownColumn, UnknownDefaultOperator

Constant Summary collapse

VERSION =
"1.4.0"

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



33
34
35
36
37
38
# File 'lib/search_cop.rb', line 33

def self.included(base)
  base.extend ClassMethods

  base.class_attribute :search_scopes
  base.search_scopes = {}
end