diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2015-09-21 09:24:39 -0600 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2015-09-21 10:12:31 -0600 |
commit | 22cc2b86f790b08bf58311bb6eb3bb148cb1dea9 (patch) | |
tree | 0e38c2f374aba0fde84391a286c6b74e130208af /activerecord/lib/active_record/type/internal | |
parent | e467deb6c66d9b45a0c596706284c140f8e1f1b3 (diff) | |
download | rails-22cc2b86f790b08bf58311bb6eb3bb148cb1dea9.tar.gz rails-22cc2b86f790b08bf58311bb6eb3bb148cb1dea9.tar.bz2 rails-22cc2b86f790b08bf58311bb6eb3bb148cb1dea9.zip |
Various stylistic nitpicks
We do not need to require each file from AM individually, the type
module does that for us. Even if the classes are extremely small right
now, I'd rather keep any custom classes needed by AR in their own files,
as they can easily have more complex changes in the future.
Diffstat (limited to 'activerecord/lib/active_record/type/internal')
-rw-r--r-- | activerecord/lib/active_record/type/internal/timezone.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/type/internal/timezone.rb b/activerecord/lib/active_record/type/internal/timezone.rb index 07dbb0b2c6..947e06158a 100644 --- a/activerecord/lib/active_record/type/internal/timezone.rb +++ b/activerecord/lib/active_record/type/internal/timezone.rb @@ -5,7 +5,7 @@ module ActiveRecord def is_utc? ActiveRecord::Base.default_timezone == :utc end - + def default_timezone ActiveRecord::Base.default_timezone end |