Class: ROM::SQL::MapperCompiler
- Inherits:
-
MapperCompiler
- Object
- MapperCompiler
- ROM::SQL::MapperCompiler
- 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, _, = node if [:wrapped] [extract_wrapped_name(node), from: [:alias]] else [name] end end |