Module: Decidim::NotificationsSettingsHelper

Defined in:
app/helpers/decidim/notifications_settings_helper.rb

Overview

Helper that provides methods to render the notifications settings form

Instance Method Summary collapse

Instance Method Details

#frequencies_collectionObject



6
7
8
9
10
11
12
13
# File 'app/helpers/decidim/notifications_settings_helper.rb', line 6

def frequencies_collection
  {
    none: t("decidim.notifications_settings.show.notifications_sending_frequencies.none"),
    real_time: t("decidim.notifications_settings.show.notifications_sending_frequencies.real_time"),
    daily: t("decidim.notifications_settings.show.notifications_sending_frequencies.daily"),
    weekly: t("decidim.notifications_settings.show.notifications_sending_frequencies.weekly")
  }
end