diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-05-19 17:30:26 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-05-20 16:37:35 -0700 |
commit | c4245c31c6b83c9d70b5ca29f6fd820b9ed7fb14 (patch) | |
tree | 06c3513f56238f501ff8356604a4467a82d43f94 /activerecord/lib/active_record/connection_adapters/type/date.rb | |
parent | 470c4dfe2d06a428af159f8688eb432529c61c2e (diff) | |
download | rails-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/date.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/type/date.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/type/date.rb b/activerecord/lib/active_record/connection_adapters/type/date.rb index 599dbd320c..1e7205fd0b 100644 --- a/activerecord/lib/active_record/connection_adapters/type/date.rb +++ b/activerecord/lib/active_record/connection_adapters/type/date.rb @@ -6,6 +6,10 @@ module ActiveRecord :date end + def klass + ::Date + end + private def cast_value(value) |