diff options
author | Peter Leitzen <pleitzen@gitlab.com> | 2019-01-07 21:46:34 +0300 |
---|---|---|
committer | Peter Leitzen <pleitzen@gitlab.com> | 2019-01-07 21:46:34 +0300 |
commit | 6710c87434e6d2508dc6b2553594258e77d23723 (patch) | |
tree | 50cb2758d6038831dfa2b53782e24b4aac6b6cea /app/models | |
parent | 191c20d71447dca1a516b27c01a152a43cf8be69 (diff) |
Implement error tracking configuration
Re-use operations controller which already handles tracing settings.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 9d0348d848a..d57098407d0 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -296,6 +296,8 @@ class Project < ActiveRecord::Base allow_destroy: true, reject_if: ->(attrs) { attrs[:id].blank? && attrs[:url].blank? } + accepts_nested_attributes_for :error_tracking_setting, update_only: true + delegate :name, to: :owner, allow_nil: true, prefix: true delegate :members, to: :team, prefix: true delegate :add_user, :add_users, to: :team |