diff options
Diffstat (limited to 'lib/arel/algebra/attributes/attribute.rb')
-rw-r--r-- | lib/arel/algebra/attributes/attribute.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/algebra/attributes/attribute.rb b/lib/arel/algebra/attributes/attribute.rb index 0266b38db3..640d6facde 100644 --- a/lib/arel/algebra/attributes/attribute.rb +++ b/lib/arel/algebra/attributes/attribute.rb @@ -104,12 +104,12 @@ module Arel ", :any => " def #{name}_any(*others) - Predicates::Any.new(Predicates::#{klass}, self, *others) + Predicates::Any.build(Predicates::#{klass}, self, *others) end ", :all => " def #{name}_all(*others) - Predicates::All.new(Predicates::#{klass}, self, *others) + Predicates::All.build(Predicates::#{klass}, self, *others) end " } |