Sha256: 3ae0dd5c0642699a87479cc54dba6d7b984a7507a829c66369e5f701bdf1747c

Contents?: true

Size: 245 Bytes

Versions: 9

Compression:

Stored size: 245 Bytes

Contents

module Arel
  module Nodes
    class Node
      def to_sql_and_binds(engine = Arel::Table.engine)
        collector = engine.connection.send(:collector)
        engine.connection.visitor.accept(self, collector).value
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
arel_toolkit-0.4.9 lib/arel/extensions/node.rb
arel_toolkit-0.4.8 lib/arel/extensions/node.rb
arel_toolkit-0.4.7 lib/arel/extensions/node.rb
arel_toolkit-0.4.6 lib/arel/extensions/node.rb
arel_toolkit-0.4.5 lib/arel/extensions/node.rb
arel_toolkit-0.4.4 lib/arel/extensions/node.rb
arel_toolkit-0.4.3 lib/arel/extensions/node.rb
arel_toolkit-0.4.2 lib/arel/extensions/node.rb
arel_toolkit-0.4.1 lib/arel/extensions/node.rb