Apply manual rubocop fixes

This commit is contained in:
Sebastian Serth
2021-05-14 11:07:11 +02:00
parent 6cbecb5b39
commit da0a682ffb
109 changed files with 431 additions and 416 deletions

View File

@ -5,7 +5,7 @@ class ExercisePolicy < AdminOrAuthorPolicy
admin?
end
%i[show? feedback? statistics? get_rfcs_for_exercise?].each do |action|
%i[show? feedback? statistics? rfcs_for_exercise?].each do |action|
define_method(action) { admin? || teacher_in_study_group? || teacher? && @record.public? || author? }
end

View File

@ -37,11 +37,11 @@ class RequestForCommentPolicy < ApplicationPolicy
everyone
end
def get_my_comment_requests?
def my_comment_requests?
everyone
end
def get_rfcs_with_my_comments?
def rfcs_with_my_comments?
everyone
end
end