diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-12 21:21:20 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-12 21:21:20 -0700 |
commit | e573a9ea468d748cf0ebd1a70521c1589efda23e (patch) | |
tree | 0d92325a54370b1412b47e247efe4bd4d86efdc7 /lib/arel/table.rb | |
parent | 16e7273245473bb6466a79a38702a52387bab44d (diff) | |
download | rails-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.rb | 4 |
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 |