Class: ActiveRecord::PredicateBuilder::BasicObjectHandler
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activerecord/lib/active_record/relation/predicate_builder/basic_object_handler.rb |
Class Method Summary
- .new(predicate_builder) ⇒ BasicObjectHandler constructor
Instance Attribute Summary
- #predicate_builder readonly private
Instance Method Summary
Constructor Details
.new(predicate_builder) ⇒ BasicObjectHandler
# 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