Class: ActiveRecord::PredicateBuilder::BasicObjectHandler

Inherits:
Object
  • Object
show all
Defined in:
activerecord/lib/active_record/relation/predicate_builder/basic_object_handler.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(predicate_builder) ⇒ BasicObjectHandler

Returns a new instance of BasicObjectHandler.


4
5
6
# File 'activerecord/lib/active_record/relation/predicate_builder/basic_object_handler.rb', line 4

def initialize(predicate_builder)
  @predicate_builder = predicate_builder
end

Instance Method Details

#call(attribute, value) ⇒ Object


8
9
10
# File 'activerecord/lib/active_record/relation/predicate_builder/basic_object_handler.rb', line 8

def call(attribute, value)
  attribute.eq(value)
end