summaryrefslogtreecommitdiff
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-04-08 17:24:27 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-04-08 17:24:27 -0300
commitee497599cc69b126cc2e4a929f1799d3d3eb989d (patch)
tree07616b6ffaa63b5b93a61049f321547fc30ce593 /app/controllers/projects_controller.rb
parent069724cef5873b83720004772d1e874030cc9fff (diff)
downloadgitlab-ce-ee497599cc69b126cc2e4a929f1799d3d3eb989d.tar.gz
Use default_value_for to set default NotificationSetting#level
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 41a4c41cf80..39f436f6f4e 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -106,7 +106,6 @@ class ProjectsController < Projects::ApplicationController
if @membership
@notification_setting = current_user.notification_settings.find_or_initialize_by(source: @project)
- @notification_setting.set_defaults unless @notification_setting.persisted?
end
end