aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/factory_methods.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-03-24 16:50:34 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-03-24 16:50:34 -0700
commitd38352ef9e63ec6e1ffee3e4fe78101df36bd6d8 (patch)
tree55abf16fa07aeea54c8d9510dacb4c901a9cd56a /lib/arel/factory_methods.rb
parent93d72131bcc24ccb5536bec672d2dac94f8de651 (diff)
downloadrails-d38352ef9e63ec6e1ffee3e4fe78101df36bd6d8.tar.gz
rails-d38352ef9e63ec6e1ffee3e4fe78101df36bd6d8.tar.bz2
rails-d38352ef9e63ec6e1ffee3e4fe78101df36bd6d8.zip
build quoted strings
Diffstat (limited to 'lib/arel/factory_methods.rb')
-rw-r--r--lib/arel/factory_methods.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/factory_methods.rb b/lib/arel/factory_methods.rb
index 3b16feae10..cb66f6f888 100644
--- a/lib/arel/factory_methods.rb
+++ b/lib/arel/factory_methods.rb
@@ -37,7 +37,7 @@ module Arel
###
# Create a LOWER() function
def lower column
- Nodes::NamedFunction.new 'LOWER', [column]
+ Nodes::NamedFunction.new 'LOWER', [Nodes.build_quoted(column)]
end
end
end