diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-16 17:31:21 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-17 18:58:59 +0300 |
commit | c6511235e4253d11447b40c2ea42ecb02c99687e (patch) | |
tree | ae7d2d39479ecde85682b55a68227df056ffa019 /app/services/boards/lists | |
parent | 29a91c5bc65524fffeaaba493f30c419b98f0869 (diff) |
Add a destroyable scope and a destroyable? method to List model
Diffstat (limited to 'app/services/boards/lists')
-rw-r--r-- | app/services/boards/lists/destroy_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/boards/lists/destroy_service.rb b/app/services/boards/lists/destroy_service.rb index 9edb596bf46..5c8719f193a 100644 --- a/app/services/boards/lists/destroy_service.rb +++ b/app/services/boards/lists/destroy_service.rb @@ -2,7 +2,7 @@ module Boards module Lists class DestroyService < Boards::BaseService def execute(list) - return false unless list.label? + return false unless list.destroyable? list.with_lock do decrement_higher_lists(list) |