Apply automatic rubocop fixes
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AdminOnlyPolicy < ApplicationPolicy
|
||||
[:create?, :destroy?, :edit?, :index?, :new?, :show?, :update?].each do |action|
|
||||
%i[create? destroy? edit? index? new? show? update?].each do |action|
|
||||
define_method(action) { admin? }
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user