Sha256: 0fac82cc7eb56e15db56013908c6724204165a7d8363343f88612c96983c75c7

Contents?: true

Size: 377 Bytes

Versions: 34

Compression:

Stored size: 377 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

      protected

        attr_reader :predicate_builder
    end
  end
end

Version data entries

34 entries across 34 versions & 4 rubygems

Version Path
activerecord-5.2.8.1 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-5.2.8 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-5.2.7.1 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-5.2.7 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-5.2.6.3 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-5.2.6.2 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-5.2.6.1 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-5.2.6 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-5.2.4.6 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-5.2.5 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-5.2.4.5 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-5.2.4.4 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-5.2.4.3 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-5.2.4.2 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-5.2.4.1 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-5.2.4 lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-5.2.4.rc1 lib/active_record/relation/predicate_builder/base_handler.rb
spiral_form-0.1.1 vendor/bundle/gems/activerecord-5.2.3/lib/active_record/relation/predicate_builder/base_handler.rb
spiral_form-0.1.0 vendor/bundle/gems/activerecord-5.2.3/lib/active_record/relation/predicate_builder/base_handler.rb
activerecord-5.2.3 lib/active_record/relation/predicate_builder/base_handler.rb