Fix rubocop offenses - Requires Ruby 3.1+
This commit is contained in:
@ -10,7 +10,7 @@ class Intervention < ApplicationRecord
|
||||
|
||||
def self.create_default_interventions
|
||||
%w[BreakIntervention QuestionIntervention].each do |name|
|
||||
Intervention.find_or_create_by(name: name)
|
||||
Intervention.find_or_create_by(name:)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user