rosa-build/app/helpers/statistics_helper.rb

10 lines
194 B
Ruby

module StatisticsHelper
def statistics_range_options
options_for_select(
StatisticsController::RANGES.map { |r| [I18n.t(r, scope: 'statistics.helper.period'), r] }
)
end
end