Methods

Attributes

[RW] preparable

Instance Public methods

accept(*)

📝 Source code
# File activerecord/lib/active_record/connection_adapters/determine_if_preparable_visitor.rb, line 8
      def accept(*)
        @preparable = true
        super
      end
🔎 See on GitHub

visit_Arel_Nodes_In(o, collector)

📝 Source code
# File activerecord/lib/active_record/connection_adapters/determine_if_preparable_visitor.rb, line 13
      def visit_Arel_Nodes_In(o, collector)
        @preparable = false

        if Array === o.right && !o.right.empty?
          o.right.delete_if do |bind|
            if Arel::Nodes::BindParam === bind && Relation::QueryAttribute === bind.value
              !bind.value.boundable?
            end
          end
        end

        super
      end
🔎 See on GitHub

visit_Arel_Nodes_SqlLiteral(*)

📝 Source code
# File activerecord/lib/active_record/connection_adapters/determine_if_preparable_visitor.rb, line 27
      def visit_Arel_Nodes_SqlLiteral(*)
        @preparable = false
        super
      end
🔎 See on GitHub