You can, but it's a real PITA ... see the arel slides i put together
http://www.slideshare.net/flah00


On Tue, Jul 16, 2013 at 2:44 PM, Alejandro Ciniglio <
notifications@github.com> wrote:

> In lib/arel_extensions.rb:
>
> > @@ -0,0 +1,5 @@
> > +Arel::Table.class_eval do |base|
> > +  def function(name, expr, aliaz = nil)
> > +    Arel::Nodes::NamedFunction.new(name, expr, aliaz)
>
> Does this actually need to be monkeypatching Arel::Table? Can we just call
> NamedFunction from an external location?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Adaptly/httpsql/pull/2/files#r5224139>
> .
>