Class: ActiveRecord::PredicateBuilder::ClassHandler
- Inherits:
-
Object
- Object
- ActiveRecord::PredicateBuilder::ClassHandler
- Defined in:
- lib/active_record/relation/predicate_builder/class_handler.rb
Overview
:nodoc:
Instance Method Summary collapse
- #call(attribute, value) ⇒ Object
-
#initialize(predicate_builder) ⇒ ClassHandler
constructor
A new instance of ClassHandler.
Constructor Details
#initialize(predicate_builder) ⇒ ClassHandler
Returns a new instance of ClassHandler.
4 5 6 |
# File 'lib/active_record/relation/predicate_builder/class_handler.rb', line 4 def initialize(predicate_builder) @predicate_builder = predicate_builder end |
Instance Method Details
#call(attribute, value) ⇒ Object
8 9 10 11 |
# File 'lib/active_record/relation/predicate_builder/class_handler.rb', line 8 def call(attribute, value) print_deprecation_warning predicate_builder.build(attribute, value.name) end |