aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/table.rb
diff options
context:
space:
mode:
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 1b37a3b66b..a189838c07 100644
--- a/lib/arel/table.rb
+++ b/lib/arel/table.rb
@@ -20,6 +20,10 @@ module Arel
tm.where condition
end
+ def project thing
+ tm.project thing
+ end
+
def columns
@columns ||= @engine.connection.columns(@name, "#{@name} Columns").map do |column|
Attributes.for(column).new self, column.name, column