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-6.1.3.1 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.3.6 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.1.3 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.1.2.1 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.3.5 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.1.2 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.1.1 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.1.0 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.1.0.rc2 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.1.0.rc1 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.3.4 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.3.3 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.3.2 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.3.1 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.3 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.3.rc1 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.2.2 lib/active_record/relation/predicate_builder/basic_object_handler.rb
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/predicate_builder/basic_object_handler.rb
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.2.1 lib/active_record/relation/predicate_builder/basic_object_handler.rb