rubocop: fix various Rubocop warnings.

This commit is contained in:
evazion
2021-06-16 18:24:42 -05:00
parent cfe471e0b5
commit 07e23204b6
99 changed files with 412 additions and 374 deletions

View File

@@ -54,7 +54,7 @@ class PoolsController < ApplicationController
def destroy
@pool = authorize Pool.find(params[:id])
@pool.update_attribute(:is_deleted, true)
@pool.update(is_deleted: true)
@pool.create_mod_action_for_delete
flash[:notice] = "Pool deleted"
respond_with(@pool)
@@ -62,7 +62,7 @@ class PoolsController < ApplicationController
def undelete
@pool = authorize Pool.find(params[:id])
@pool.update_attribute(:is_deleted, false)
@pool.update(is_deleted: false)
@pool.create_mod_action_for_undelete
flash[:notice] = "Pool undeleted"
respond_with(@pool)