aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/arel/nodes/casted.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/arel/nodes/casted.rb')
-rw-r--r--activerecord/lib/arel/nodes/casted.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/arel/nodes/casted.rb b/activerecord/lib/arel/nodes/casted.rb
index c1e6e97d6d..6e911b717d 100644
--- a/activerecord/lib/arel/nodes/casted.rb
+++ b/activerecord/lib/arel/nodes/casted.rb
@@ -27,6 +27,10 @@ module Arel # :nodoc: all
class Quoted < Arel::Nodes::Unary # :nodoc:
alias :val :value
def nil?; val.nil?; end
+
+ def infinite?
+ value.respond_to?(:infinite?) && value.infinite?
+ end
end
def self.build_quoted(other, attribute = nil)