Sha256: 72dd1abb83eca31c8c4c65167ae615333c0fcb2129533395832901001dfb0820

Contents?: true

Size: 432 Bytes

Versions: 153

Compression:

Stored size: 432 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
  class PredicateBuilder
    class BasicObjectHandler # :nodoc:
      def initialize(predicate_builder)
        @predicate_builder = predicate_builder
      end

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

      private
        attr_reader :predicate_builder
    end
  end
end

Version data entries

153 entries across 148 versions & 12 rubygems

Version Path
activerecord-8.0.0 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-7.2.2 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-7.1.5 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-8.0.0.rc2 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-7.2.1.2 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-7.1.4.2 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-7.0.8.6 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.1.7.10 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-8.0.0.rc1 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.1.7.9 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-7.2.1.1 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-7.1.4.1 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-7.0.8.5 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-8.0.0.beta1 lib/active_record/relation/predicate_builder/basic_object_handler.rb
omg-activerecord-8.0.0.alpha9 lib/active_record/relation/predicate_builder/basic_object_handler.rb
omg-activerecord-8.0.0.alpha8 lib/active_record/relation/predicate_builder/basic_object_handler.rb
omg-activerecord-8.0.0.alpha7 lib/active_record/relation/predicate_builder/basic_object_handler.rb
omg-activerecord-8.0.0.alpha4 lib/active_record/relation/predicate_builder/basic_object_handler.rb
omg-activerecord-8.0.0.alpha3 lib/active_record/relation/predicate_builder/basic_object_handler.rb
omg-activerecord-8.0.0.alpha2 lib/active_record/relation/predicate_builder/basic_object_handler.rb