Module: BMC::FiltersHelper

Included in:
AllHelpers
Defined in:
app/helpers/bmc/filters_helper.rb

Instance Method Summary collapse

Instance Method Details

#bmc_time_periods_for_selectObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'app/helpers/bmc/filters_helper.rb', line 2

def bmc_time_periods_for_select
  {
    t("time_periods.all_time")    => "",
    t("time_periods.today")       => "today",
    t("time_periods.yesterday")   => "yesterday",
    t("time_periods.this_week")   => "this_week",
    t("time_periods.last_week")   => "last_week",
    t("time_periods.this_month")  => "this_month",
    t("time_periods.last_month")  => "last_month",
    t("time_periods.this_year")   => "this_year",
    t("time_periods.last_year")   => "last_year",
    t("time_periods.custom_date") => "custom_date",
  }
end