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.0.2 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.2.rc2 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.2.rc1 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.1 lib/active_record/relation/predicate_builder/basic_object_handler.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/activerecord-6.0.0/lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.1.rc1 lib/active_record/relation/predicate_builder/basic_object_handler.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/activerecord-6.0.0/lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.0 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.0.rc2 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.0.rc1 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.0.beta3 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.0.beta2 lib/active_record/relation/predicate_builder/basic_object_handler.rb
activerecord-6.0.0.beta1 lib/active_record/relation/predicate_builder/basic_object_handler.rb