Rebuild rubocop TODOs after auto-correcting
This commit is contained in:
parent
31c50255e9
commit
84dbb52d11
580 changed files with 3689 additions and 3133 deletions
|
|
@ -1,7 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
namespace :roles do
|
||||
desc 'Adds back deleted roles to all conferences'
|
||||
task add: :environment do
|
||||
|
||||
Organization.all.each do |org|
|
||||
Role.where(name: 'organization_admin', resource: org).first_or_create(description: 'For the administrators of an organization and its conferences')
|
||||
end
|
||||
|
|
@ -16,4 +17,3 @@ namespace :roles do
|
|||
puts 'All done!'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue