Skip to content

Commit 373a668

Browse files
MrSerthdependabot[bot]
authored andcommitted
Fix Rubocop offenses
1 parent bd5dc9c commit 373a668

14 files changed

+14
-0
lines changed

app/controllers/codeharbor_links_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
class CodeharborLinksController < ApplicationController
44
include CommonBehavior
5+
56
before_action :verify_codeharbor_activation
67
before_action :set_codeharbor_link, only: %i[edit update destroy]
78
before_action :set_user_and_authorize

app/controllers/live_streams_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ class LiveStreamsController < ApplicationController
44
# Including ActionController::Live changes all actions in this controller!
55
# Therefore, it is extracted into a separate controller
66
include ActionController::Live
7+
78
before_action :set_content_type_nosniff
89

910
skip_before_action :deny_access_from_render_host, only: :download_submission_file

app/controllers/request_for_comments_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
class RequestForCommentsController < ApplicationController
44
include CommonBehavior
5+
56
before_action :set_request_for_comment, only: %i[show mark_as_solved set_thank_you_note clear_question report]
67
before_action :set_study_group_grouping,
78
only: %i[index my_comment_requests rfcs_with_my_comments rfcs_for_exercise]

app/models/anomaly_notification.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
class AnomalyNotification < ApplicationRecord
44
include ContributorCreation
5+
56
belongs_to :exercise
67
belongs_to :exercise_collection
78
end

app/models/authentication_token.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
class AuthenticationToken < ApplicationRecord
66
include Creation
7+
78
belongs_to :study_group, optional: true
89

910
def self.generate!(user, study_group)

app/models/event.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
class Event < ApplicationRecord
44
include Creation
5+
56
belongs_to :exercise
67
belongs_to :file, class_name: 'CodeOcean::File', optional: true
78
belongs_to :study_group, optional: true

app/models/programming_group_membership.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
class ProgrammingGroupMembership < ApplicationRecord
44
include Creation
5+
56
belongs_to :programming_group
67

78
validate :unique_membership_for_exercise

app/models/remote_evaluation_mapping.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# TODO: reference to lti_param_model
44
class RemoteEvaluationMapping < ApplicationRecord
55
include Creation
6+
67
before_create :generate_token, unless: :validation_token?
78
belongs_to :exercise
89
belongs_to :programming_group, optional: true

app/models/runner.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
class Runner < ApplicationRecord
44
include ContributorCreation
5+
56
belongs_to :execution_environment
67

78
# Each reservation is extended by the specified duration.

app/models/study_group_membership.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
class StudyGroupMembership < ApplicationRecord
44
include Creation
5+
56
belongs_to :study_group
67

78
before_save :destroy_if_empty_study_group_or_user

0 commit comments

Comments
 (0)