diff options
Diffstat (limited to 'activerecord/lib/arel/tree_manager.rb')
-rw-r--r-- | activerecord/lib/arel/tree_manager.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/lib/arel/tree_manager.rb b/activerecord/lib/arel/tree_manager.rb index 0476399618..326c4f995c 100644 --- a/activerecord/lib/arel/tree_manager.rb +++ b/activerecord/lib/arel/tree_manager.rb @@ -36,6 +36,11 @@ module Arel # :nodoc: all @ast.wheres << expr self end + + def comment(*values) + @ast.comment = Nodes::Comment.new(values) + self + end end attr_reader :ast |