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/time_value.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/time_value.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/type/time_value.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/type/time_value.rb b/activerecord/lib/active_record/connection_adapters/type/time_value.rb index 654e5c7943..e9ca4adeda 100644 --- a/activerecord/lib/active_record/connection_adapters/type/time_value.rb +++ b/activerecord/lib/active_record/connection_adapters/type/time_value.rb @@ -2,6 +2,10 @@ module ActiveRecord module ConnectionAdapters module Type module TimeValue # :nodoc: + def klass + ::Time + end + private def new_time(year, mon, mday, hour, min, sec, microsec, offset = nil) |