diff options
author | Daniel Azuma <dazuma@gmail.com> | 2011-01-19 12:40:15 -0800 |
---|---|---|
committer | Daniel Azuma <dazuma@gmail.com> | 2011-01-19 12:40:15 -0800 |
commit | af5c81339a19c731924c58b820ec549b0062562b (patch) | |
tree | 6aad3b94b34540b290431c4bdc47dbe7dba57561 | |
parent | dae7a245f8ec9f8eb5d9866938ea46ed7c88dcf1 (diff) | |
download | rails-af5c81339a19c731924c58b820ec549b0062562b.tar.gz rails-af5c81339a19c731924c58b820ec549b0062562b.tar.bz2 rails-af5c81339a19c731924c58b820ec549b0062562b.zip |
Chain predications off of named functions
-rw-r--r-- | lib/arel/nodes/named_function.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/arel/nodes/named_function.rb b/lib/arel/nodes/named_function.rb index 56669bf858..5fca33e323 100644 --- a/lib/arel/nodes/named_function.rb +++ b/lib/arel/nodes/named_function.rb @@ -3,6 +3,8 @@ module Arel class NamedFunction < Arel::Nodes::Function attr_accessor :name + include Arel::Predications + def initialize name, expr, aliaz = nil super(expr, aliaz) @name = name |