rubocop files update and auto correction
This commit is contained in:
parent
1a62dc930e
commit
1f82fbbdc6
88 changed files with 519 additions and 452 deletions
|
|
@ -17,9 +17,7 @@ class MigrateRolesForCancancan < ActiveRecord::Migration
|
|||
end
|
||||
|
||||
# Delete old roles
|
||||
Role.first(old_roles).each do |role|
|
||||
role.destroy
|
||||
end
|
||||
Role.first(old_roles).each(&:destroy)
|
||||
end
|
||||
|
||||
def down
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue