diff options
author | Jasper Maes <jaspermaes.jm@gmail.com> | 2019-01-03 19:23:37 +0100 |
---|---|---|
committer | Jasper Maes <jaspermaes.jm@gmail.com> | 2019-01-03 23:43:53 +0100 |
commit | d36b022fae66fc0841335b73b6c7e1a4ecbcaa6e (patch) | |
tree | 49a808dd78733eb487351ee553051ebc31153642 /app/models/list.rb | |
parent | 5a9808651b728628257545554743cdb2abba4cc3 (diff) | |
download | gitlab-ce-d36b022fae66fc0841335b73b6c7e1a4ecbcaa6e.tar.gz |
Fix deprecation: returning false in Active Record and Active Model callbacks will not implicitly halt a callback chain
Diffstat (limited to 'app/models/list.rb')
-rw-r--r-- | app/models/list.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/list.rb b/app/models/list.rb index 029685be927..682af761ba0 100644 --- a/app/models/list.rb +++ b/app/models/list.rb @@ -54,6 +54,6 @@ class List < ActiveRecord::Base private def can_be_destroyed - destroyable? + throw(:abort) unless destroyable? end end |