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



188
189
190
191
192
193
194
195
# File 'lib/arel_extensions.rb', line 188

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