aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines/sql/formatters.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/engines/sql/formatters.rb')
-rw-r--r--lib/arel/engines/sql/formatters.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/engines/sql/formatters.rb b/lib/arel/engines/sql/formatters.rb
index 626803a887..a13e11f24f 100644
--- a/lib/arel/engines/sql/formatters.rb
+++ b/lib/arel/engines/sql/formatters.rb
@@ -98,6 +98,10 @@ module Arel
(table.name != name_for(table) ? " AS " + quote_table_name(name_for(table)) : '')
end
end
+
+ def attribute(attribute)
+ attribute
+ end
end
class Attribute < WhereCondition