summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-08-24 04:05:39 +0800
committerHeinrich Lee Yu <heinrich@gitlab.com>2019-09-05 20:24:33 +0800
commit7a8d216480b8b33c38c56c28734deb96f74f0988 (patch)
tree202207921cfedf2f228c26795e3846878f1aa04f /config
parentdd80d6229215d0ca4c3eae7bde1ac4b2a0d12d3c (diff)
downloadgitlab-ce-7a8d216480b8b33c38c56c28734deb96f74f0988.tar.gz
Patches ChronicDuration to use our custom conversions when parsing months
Diffstat (limited to 'config')
-rw-r--r--config/initializers/chronic_duration.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/initializers/chronic_duration.rb b/config/initializers/chronic_duration.rb
index b65b06c813a..aa43eef434c 100644
--- a/config/initializers/chronic_duration.rb
+++ b/config/initializers/chronic_duration.rb
@@ -1 +1,5 @@
+# frozen_string_literal: true
+
ChronicDuration.raise_exceptions = true
+
+ChronicDuration.prepend Gitlab::Patch::ChronicDuration