aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/type/value.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-20 21:17:38 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-20 21:17:38 -0300
commitc72d6c91a7c0c2dc81cc857a1d6db496e84e0065 (patch)
treecd261a40e2e6ac50c9f63378fc68cf291954c764 /activerecord/lib/active_record/connection_adapters/type/value.rb
parent437f464b391d6b915b2604e668c10740fe638edd (diff)
parentc4245c31c6b83c9d70b5ca29f6fd820b9ed7fb14 (diff)
downloadrails-c72d6c91a7c0c2dc81cc857a1d6db496e84e0065.tar.gz
rails-c72d6c91a7c0c2dc81cc857a1d6db496e84e0065.tar.bz2
rails-c72d6c91a7c0c2dc81cc857a1d6db496e84e0065.zip
Merge pull request #15205 from sgrif/sg-delegate-klass
Delegate `klass` to the injected type object
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/type/value.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/type/value.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/type/value.rb b/activerecord/lib/active_record/connection_adapters/type/value.rb
index ba8f360eb9..577e464553 100644
--- a/activerecord/lib/active_record/connection_adapters/type/value.rb
+++ b/activerecord/lib/active_record/connection_adapters/type/value.rb
@@ -24,6 +24,10 @@ module ActiveRecord
false
end
+ def klass
+ ::Object
+ end
+
private
def cast_value(value)