Class: Arel::Nodes::TableAlias

Inherits:
Object
  • Object
show all
Defined in:
lib/arel_extensions.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args) ⇒ Object



276
277
278
279
280
281
282
283
# File 'lib/arel_extensions.rb', line 276

def method_missing(*args)
  met = args.shift.to_sym
  if self.relation.respond_to?(met)
    self.relation.send(met, args)
  else
    super(met, *args)
  end
end