Class: Arel::Visitors::Ruby

Inherits:
Visitor
  • Object
show all
Defined in:
lib/arel/visitors/ruby.rb

Instance Method Summary collapse

Constructor Details

#initializeRuby

Returns a new instance of Ruby.



7
8
9
10
# File 'lib/arel/visitors/ruby.rb', line 7

def initialize
  @connection = Object.new.extend(ActiveRecord::ConnectionAdapters::Quoting)
  @dummy_column = Struct.new(:type).new
end