This rule was added in rubocop 1.79. We were inconsistent about it, so we're adding it to get more consistency.
20 lines
347 B
Ruby
20 lines
347 B
Ruby
class Admin::MachineLearning::ShowComponent < ApplicationComponent
|
|
include Header
|
|
|
|
attr_reader :machine_learning_job
|
|
|
|
def initialize(machine_learning_job)
|
|
@machine_learning_job = machine_learning_job
|
|
end
|
|
|
|
def title
|
|
t("admin.machine_learning.title")
|
|
end
|
|
|
|
private
|
|
|
|
def enabled?
|
|
::MachineLearning.enabled?
|
|
end
|
|
end
|