diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-06-07 03:39:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-07 03:39:24 +0200 |
commit | 1db4117030ac69b1083ddfe7390dedb02cede421 (patch) | |
tree | a5d97d8f2046ab8455f108770570c3b3a5ba8bac /app/controllers/settings/preferences | |
parent | a60364ca7d26c82c9353980d0966d37e9aa66014 (diff) |
Change preferences page into appearance, notifications, and other (#10977)
Diffstat (limited to 'app/controllers/settings/preferences')
-rw-r--r-- | app/controllers/settings/preferences/appearance_controller.rb | 9 | ||||
-rw-r--r-- | app/controllers/settings/preferences/notifications_controller.rb | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/app/controllers/settings/preferences/appearance_controller.rb b/app/controllers/settings/preferences/appearance_controller.rb new file mode 100644 index 000000000..80ea57bd2 --- /dev/null +++ b/app/controllers/settings/preferences/appearance_controller.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class Settings::Preferences::AppearanceController < Settings::PreferencesController + private + + def after_update_redirect_path + settings_preferences_appearance_path + end +end diff --git a/app/controllers/settings/preferences/notifications_controller.rb b/app/controllers/settings/preferences/notifications_controller.rb new file mode 100644 index 000000000..a16ae6a67 --- /dev/null +++ b/app/controllers/settings/preferences/notifications_controller.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class Settings::Preferences::NotificationsController < Settings::PreferencesController + private + + def after_update_redirect_path + settings_preferences_notifications_path + end +end |