aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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 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