diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-12-04 08:10:49 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-12-04 08:10:49 -0700 |
commit | 0b720f73ce58b9670f6e611252f475be6286c4de (patch) | |
tree | f3e3abec398445ff1d149a6b912eb580452a48d9 | |
parent | e2f22adfaf4dacd40554db875c35a8a7e1980bd7 (diff) | |
download | rails-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
-rw-r--r-- | lib/arel/nodes.rb | 1 |
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 |