Revision a977bd3b
Added by Daniel Lobato Garcia over 8 years ago
.rubocop_todo.yml | ||
---|---|---|
Rails/ReadWriteAttribute:
|
||
Enabled: false
|
||
|
||
# Offense count: 48
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||
Rails/TimeZone:
|
||
Enabled: false
|
||
|
||
# Offense count: 2
|
||
# Cop supports --auto-correct.
|
||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
Also available in: Unified diff
Fixes #13557 - Rubocop enforce specifying a timezone
Rubocop can enforce what timezone to store in the database ,
so we can ensure everything is stored using UTC and we don't
miss these things in code reviews. When objects are displayed,
they must use the time provided by set_timezone in the
controller.
This is particularly relevant for Trends, Puppet graphs, etc... to
ensure they are stored always properly