aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/type/date_time.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-02-07 14:34:46 -0700
committerSean Griffin <sean@thoughtbot.com>2015-02-07 14:34:46 -0700
commitc4ef73affdc67efb02ca369326aaaaab3fd94d21 (patch)
tree060ac064cd881b52f9179f7417c7f253779f750f /activerecord/lib/active_record/type/date_time.rb
parent7e93e33c1980ea3d08cec9708d2737f1c8d0a10a (diff)
downloadrails-c4ef73affdc67efb02ca369326aaaaab3fd94d21.tar.gz
rails-c4ef73affdc67efb02ca369326aaaaab3fd94d21.tar.bz2
rails-c4ef73affdc67efb02ca369326aaaaab3fd94d21.zip
Move non-type objects into the `Type::Helpers` namespace
The type code is actually quite accessible, and I'm planning to encourage people to look at the files in the `type` folder to learn more about how it works. This will help reduce the noise from code that is less about type casting, and more about random AR nonsense.
Diffstat (limited to 'activerecord/lib/active_record/type/date_time.rb')
-rw-r--r--activerecord/lib/active_record/type/date_time.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/type/date_time.rb b/activerecord/lib/active_record/type/date_time.rb
index 922f0d8fef..5646ee61db 100644
--- a/activerecord/lib/active_record/type/date_time.rb
+++ b/activerecord/lib/active_record/type/date_time.rb
@@ -1,7 +1,7 @@
module ActiveRecord
module Type
class DateTime < Value # :nodoc:
- include TimeValue
+ include Helpers::TimeValue
include Helpers::AcceptsMultiparameterTime.new(
defaults: { 4 => 0, 5 => 0 }
)