From 5b9f8b112a1986c12933e01068645c534bc5f095 Mon Sep 17 00:00:00 2001 From: Adrian Toth Date: Mon, 28 Aug 2017 13:30:01 +0200 Subject: [PATCH] Remove FROM_DAYS from UiConstants --- app/helpers/ui_constants.rb | 11 ----------- app/helpers/view_helper.rb | 12 ++++++++++++ 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/app/helpers/ui_constants.rb b/app/helpers/ui_constants.rb index ec158684ae2..c59ec2aa889 100644 --- a/app/helpers/ui_constants.rb +++ b/app/helpers/ui_constants.rb @@ -122,17 +122,6 @@ module UiConstants EXP_FROM = "FROM" EXP_IS = "IS" - FROM_DAYS = [ - N_('Today'), - N_('Yesterday'), - N_('2 Days Ago'), - N_('3 Days Ago'), - N_('4 Days Ago'), - N_('5 Days Ago'), - N_('6 Days Ago'), - N_('7 Days Ago'), - N_('14 Days Ago') - ] FROM_WEEKS = [ N_('This Week'), N_('Last Week'), diff --git a/app/helpers/view_helper.rb b/app/helpers/view_helper.rb index cd4b388e775..63e76e9bd6e 100644 --- a/app/helpers/view_helper.rb +++ b/app/helpers/view_helper.rb @@ -79,6 +79,18 @@ module ViewHelper N_('23 Hours Ago') ].freeze + FROM_DAYS = [ + N_('Today'), + N_('Yesterday'), + N_('2 Days Ago'), + N_('3 Days Ago'), + N_('4 Days Ago'), + N_('5 Days Ago'), + N_('6 Days Ago'), + N_('7 Days Ago'), + N_('14 Days Ago') + ].freeze + class << self def concat_tag(*args, &block) concat content_tag(*args, &block)