From 6032d40c1d1c7a7681f145c30b4c26386395ba45 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 10 Sep 2010 11:39:50 -0700 Subject: added greater than or equal to node --- lib/arel/attributes/attribute.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/arel/attributes/attribute.rb') diff --git a/lib/arel/attributes/attribute.rb b/lib/arel/attributes/attribute.rb index bd47aa12fd..62bef5f1cf 100644 --- a/lib/arel/attributes/attribute.rb +++ b/lib/arel/attributes/attribute.rb @@ -24,6 +24,10 @@ module Arel def average Nodes::Avg.new [self], Nodes::SqlLiteral.new('avg_id') end + + def gteq right + Nodes::GreaterThanOrEqual.new self, right + end end class String < Attribute; end -- cgit v1.2.3