Class: PgTagsOn::PredicateHandler

Inherits:
ActiveRecord::PredicateBuilder::BasicObjectHandler
  • Object
show all
Defined in:
lib/pg_tags_on/predicate_handler.rb,
lib/pg_tags_on/predicate_handler/base_handler.rb,
lib/pg_tags_on/predicate_handler/array_text_handler.rb,
lib/pg_tags_on/predicate_handler/array_jsonb_handler.rb,
lib/pg_tags_on/predicate_handler/array_string_handler.rb,
lib/pg_tags_on/predicate_handler/array_integer_handler.rb,
lib/pg_tags_on/predicate_handler/array_jsonb_with_attrs_handler.rb

Overview

Models’ predicate handlers register this class

Defined Under Namespace

Classes: ArrayIntegerHandler, ArrayJsonbHandler, ArrayJsonbWithAttrsHandler, ArrayStringHandler, ArrayTextHandler, BaseHandler, Builder

Instance Method Summary collapse

Instance Method Details

#call(attribute, query) ⇒ Object



6
7
8
9
10
# File 'lib/pg_tags_on/predicate_handler.rb', line 6

def call(attribute, query)
  handler = Builder.new(attribute, query, predicate_builder).call

  handler.call
end