Class: SQLTree::Node::Expression::Field

Inherits:
Variable
  • Object
show all
Defined in:
lib/active_record/turntable/sql_tree_patch.rb

Instance Method Summary collapse

Instance Method Details

#to_sql(options = {}) ⇒ Object



260
261
262
# File 'lib/active_record/turntable/sql_tree_patch.rb', line 260

def to_sql(options = {})
  @table.nil? ? quote_field_name(@name) : quote_field_name(@table) + "." + quote_field_name(@name)
end