diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-04-08 17:24:27 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-04-08 17:24:27 -0300 |
commit | ee497599cc69b126cc2e4a929f1799d3d3eb989d (patch) | |
tree | 07616b6ffaa63b5b93a61049f321547fc30ce593 /app/controllers | |
parent | 069724cef5873b83720004772d1e874030cc9fff (diff) | |
download | gitlab-ce-ee497599cc69b126cc2e4a929f1799d3d3eb989d.tar.gz |
Use default_value_for to set default NotificationSetting#level
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects_controller.rb | 1 |
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 |