Class: ActiveRecord::PredicateBuilder::BasicObjectHandler
- Defined in:
- activerecord/lib/active_record/relation/predicate_builder/basic_object_handler.rb
Overview
:nodoc:
Instance Method Summary collapse
- #call(attribute, value) ⇒ Object
-
#initialize(predicate_builder) ⇒ BasicObjectHandler
constructor
A new instance of BasicObjectHandler.
Constructor Details
#initialize(predicate_builder) ⇒ BasicObjectHandler
Returns a new instance of BasicObjectHandler.
6 7 8 |
# File 'activerecord/lib/active_record/relation/predicate_builder/basic_object_handler.rb', line 6 def initialize(predicate_builder) @predicate_builder = predicate_builder end |
Instance Method Details
#call(attribute, value) ⇒ Object
10 11 12 13 |
# 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 |