Method: Arel::SelectManager#xas

Defined in:
lib/arel_extensions.rb

#xas(table_name) ⇒ Object

Install an alias, if present.



264
265
266
267
268
269
270
# File 'lib/arel_extensions.rb', line 264

def xas table_name
  if table_name.present?
    as table_name
  else
    self
  end
end