about summary refs log tree commit diff
path: root/app/controllers/api
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-10 17:25:10 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-10 17:25:10 +0100
commit312c51b5c87e23c62d163770d550dc94df32627f (patch)
tree29b29205d4c08176bb271854ab82406211b645c5 /app/controllers/api
parent1e9d2c4b1e00e8e68fefe5c04b48f66c827d31d5 (diff)
Home column filters
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/web/settings_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/web/settings_controller.rb b/app/controllers/api/web/settings_controller.rb
index e6f690114..c00e016a4 100644
--- a/app/controllers/api/web/settings_controller.rb
+++ b/app/controllers/api/web/settings_controller.rb
@@ -6,7 +6,7 @@ class Api::Web::SettingsController < ApiController
   before_action :require_user!
 
   def update
-    setting      = Web::Setting.where(user: current_user).first_or_initialize(user: current_user)
+    setting      = ::Web::Setting.where(user: current_user).first_or_initialize(user: current_user)
     setting.data = params[:data]
     setting.save!