aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-12-04 08:10:49 -0700
committerSean Griffin <sean@thoughtbot.com>2014-12-04 08:10:49 -0700
commit0b720f73ce58b9670f6e611252f475be6286c4de (patch)
treef3e3abec398445ff1d149a6b912eb580452a48d9 /lib
parente2f22adfaf4dacd40554db875c35a8a7e1980bd7 (diff)
downloadrails-0b720f73ce58b9670f6e611252f475be6286c4de.tar.gz
rails-0b720f73ce58b9670f6e611252f475be6286c4de.tar.bz2
rails-0b720f73ce58b9670f6e611252f475be6286c4de.zip
Quoted nodes respond to the same method as Casted nodes
We need to be able to not care which we've gotten in ActiveRecord
Diffstat (limited to 'lib')
-rw-r--r--lib/arel/nodes.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/arel/nodes.rb b/lib/arel/nodes.rb
index e62f9f909e..49000af4ab 100644
--- a/lib/arel/nodes.rb
+++ b/lib/arel/nodes.rb
@@ -76,6 +76,7 @@ module Arel
end
class Quoted < Arel::Nodes::Unary # :nodoc:
+ alias :val :value
end
def self.build_quoted other, attribute = nil