Module: ArelHelpers::Aliases::ClassMethods
- Defined in:
- lib/arel-helpers/aliases.rb
Instance Method Summary collapse
Instance Method Details
#aliased_as(*args) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/arel-helpers/aliases.rb', line 9 def aliased_as(*args) aliases = args.map { |name| arel_table.alias(name) } if block_given? yield *aliases else aliases end end |