From f47d083c5bbbac1a807954a20a35888024fb4707 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 16 Aug 2010 15:02:37 -0700 Subject: table responds to take --- lib/arel/table.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/arel') diff --git a/lib/arel/table.rb b/lib/arel/table.rb index b629e0755b..2df20e50e8 100644 --- a/lib/arel/table.rb +++ b/lib/arel/table.rb @@ -26,6 +26,10 @@ module Arel tm.project thing end + def take amount + tm.take amount + end + def columns @columns ||= @engine.connection.columns(@name, "#{@name} Columns").map do |column| Attributes.for(column).new self, column.name, column -- cgit v1.2.3