Sha256: f789d3711f24ab2d20df4e3a05dd45e567024c80426c3ada63148b50e53ee3a1

Contents?: true

Size: 374 Bytes

Versions: 39

Compression:

Stored size: 374 Bytes

Contents

# frozen_string_literal: true

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

      def call(attribute, value)
        predicate_builder.build(attribute, value.id)
      end

      private
        attr_reader :predicate_builder
    end
  end
end

Version data entries

39 entries across 39 versions & 4 rubygems

Version Path
activerecord-6.0.6.1 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.6 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.5.1 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.5 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.4.8 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.4.7 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.4.6 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.4.5 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.4.4 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.4.3 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.4.2 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.4.1 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.4 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.3.7 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.3.6 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.3.5 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.3.4 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.3.3 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.3.2 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-6.0.3.1 lib/active_record/relation/predicate_builder/base_handler.rb