Sha256: 7c997d810f4e277568616120ba5de1776eb023aa7dfabfb2e695ef018caffe36
Contents?: true
Size: 284 Bytes
Versions: 2
Compression:
Stored size: 284 Bytes
Contents
# frozen_string_literal: true require 'active_model' module NotificationSettings class CategoryPreferencesForm include ActiveModel::Model NotificationSettings.configuration.categories.each do |category| attribute category, :boolean, default: true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
notification-settings-3.0.2 | lib/notification_settings/category_preferences_form.rb |
notification-settings-2.0.0 | lib/notification_settings/category_preferences_form.rb |