Class: ROM::SQL::MapperCompiler

Inherits:
MapperCompiler
  • Object
show all
Defined in:
lib/rom/sql/mapper_compiler.rb

Instance Method Summary collapse

Instance Method Details

#visit_attribute(node) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/rom/sql/mapper_compiler.rb', line 8

def visit_attribute(node)
  name, _, meta_options = node

  if meta_options[:wrapped]
    [extract_wrapped_name(node), from: meta_options[:alias]]
  else
    [name]
  end
end