Sha256: bba0bd37df8af94f788ffbd840d7f10e9cf9f3c6f9e22cfe5d197d1775e06f03

Contents?: true

Size: 559 Bytes

Versions: 35

Compression:

Stored size: 559 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
  module ConnectionAdapters
    module DetermineIfPreparableVisitor
      attr_accessor :preparable

      def accept(object, collector)
        @preparable = true
        super
      end

      def visit_Arel_Nodes_In(o, collector)
        @preparable = false
        super
      end

      def visit_Arel_Nodes_NotIn(o, collector)
        @preparable = false
        super
      end

      def visit_Arel_Nodes_SqlLiteral(o, collector)
        @preparable = false
        super
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 4 rubygems

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