aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/table.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-08-12 21:21:20 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-08-12 21:21:20 -0700
commite573a9ea468d748cf0ebd1a70521c1589efda23e (patch)
tree0d92325a54370b1412b47e247efe4bd4d86efdc7 /lib/arel/table.rb
parent16e7273245473bb6466a79a38702a52387bab44d (diff)
downloadrails-e573a9ea468d748cf0ebd1a70521c1589efda23e.tar.gz
rails-e573a9ea468d748cf0ebd1a70521c1589efda23e.tar.bz2
rails-e573a9ea468d748cf0ebd1a70521c1589efda23e.zip
limits are added
Diffstat (limited to 'lib/arel/table.rb')
-rw-r--r--lib/arel/table.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/table.rb b/lib/arel/table.rb
index 0ab39f134d..7933c8c1a4 100644
--- a/lib/arel/table.rb
+++ b/lib/arel/table.rb
@@ -10,6 +10,10 @@ module Arel
@engine = engine
end
+ def where expression
+ TreeManager.new(@engine).from(self).where expression
+ end
+
def columns
@engine.connection.columns(@name, "#{@name} Columns").map do |column|
Attributes.for(column).new self, column.name, column