about summary refs log tree commit diff
path: root/app/controllers/settings/preferences
diff options
context:
space:
mode:
authorReverite <github@reverite.sh>2019-06-13 23:05:19 -0700
committerReverite <github@reverite.sh>2019-06-13 23:05:19 -0700
commit7ce2a4e95331cc9ef9b782a5c4d8046d8a835a05 (patch)
treebc4e5e39ee96ae74cbf9c09570b2e545da6587e0 /app/controllers/settings/preferences
parent3614718bc91f90a6dc19dd80ecf3bc191283c24e (diff)
parentc0e5f32d13dfd696728dc1fa2ad9a93a27aa405f (diff)
Merge branch 'glitch' into production
Diffstat (limited to 'app/controllers/settings/preferences')
-rw-r--r--app/controllers/settings/preferences/appearance_controller.rb9
-rw-r--r--app/controllers/settings/preferences/notifications_controller.rb9
-rw-r--r--app/controllers/settings/preferences/other_controller.rb9
3 files changed, 27 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
diff --git a/app/controllers/settings/preferences/other_controller.rb b/app/controllers/settings/preferences/other_controller.rb
new file mode 100644
index 000000000..07eb89a76
--- /dev/null
+++ b/app/controllers/settings/preferences/other_controller.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class Settings::Preferences::OtherController < Settings::PreferencesController
+  private
+
+  def after_update_redirect_path
+    settings_preferences_other_path
+  end
+end