aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/arel/nodes/bind_param.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/arel/nodes/bind_param.rb')
-rw-r--r--activerecord/lib/arel/nodes/bind_param.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/arel/nodes/bind_param.rb b/activerecord/lib/arel/nodes/bind_param.rb
index 91e9b2b70f..ba8340558a 100644
--- a/activerecord/lib/arel/nodes/bind_param.rb
+++ b/activerecord/lib/arel/nodes/bind_param.rb
@@ -23,6 +23,10 @@ module Arel # :nodoc: all
def nil?
value.nil?
end
+
+ def boundable?
+ !value.respond_to?(:boundable?) || value.boundable?
+ end
end
end
end