aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/type/string.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-05-19 17:30:26 -0700
committerSean Griffin <sean@thoughtbot.com>2014-05-20 16:37:35 -0700
commitc4245c31c6b83c9d70b5ca29f6fd820b9ed7fb14 (patch)
tree06c3513f56238f501ff8356604a4467a82d43f94 /activerecord/lib/active_record/connection_adapters/type/string.rb
parent470c4dfe2d06a428af159f8688eb432529c61c2e (diff)
downloadrails-c4245c31c6b83c9d70b5ca29f6fd820b9ed7fb14.tar.gz
rails-c4245c31c6b83c9d70b5ca29f6fd820b9ed7fb14.tar.bz2
rails-c4245c31c6b83c9d70b5ca29f6fd820b9ed7fb14.zip
Delegate `klass` to the injected type object
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/type/string.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/type/string.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/type/string.rb b/activerecord/lib/active_record/connection_adapters/type/string.rb
index 24f9659c7b..55f0e1ee1c 100644
--- a/activerecord/lib/active_record/connection_adapters/type/string.rb
+++ b/activerecord/lib/active_record/connection_adapters/type/string.rb
@@ -10,6 +10,10 @@ module ActiveRecord
true
end
+ def klass
+ ::String
+ end
+
private
def cast_value(value)