Enable Style/SymbolProc
This commit is contained in:
parent
7e4268db67
commit
d9d4f6fe20
16 changed files with 17 additions and 26 deletions
|
@ -45,7 +45,7 @@ namespace :support do
|
|||
if user.dossiers.state_instruction_commencee.any?
|
||||
fail "Cannot delete this user because instruction has started for some dossiers"
|
||||
end
|
||||
user.dossiers.each { |d| d.delete_and_keep_track }
|
||||
user.dossiers.each(&:delete_and_keep_track)
|
||||
user.destroy
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue