123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::PredicateBuilder::BasicObjectHandler

Do not use. This class is for internal use only.

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(predicate_builder) ⇒ BasicObjectHandler

[ GitHub ]

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

def initialize(predicate_builder)
  @predicate_builder = predicate_builder
end

Instance Attribute Details

#predicate_builder (readonly, private)

[ GitHub ]

  
# File 'activerecord/lib/active_record/relation/predicate_builder/basic_object_handler.rb', line 16

attr_reader :predicate_builder

Instance Method Details

#call(attribute, value)

[ GitHub ]

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

def call(attribute, value)
  bind = predicate_builder.build_bind_attribute(attribute.name, value)
  attribute.eq(bind)
end