Add experimental machine learning
This commit is contained in:
committed by
Javi Martín
parent
c8d8fae98d
commit
4d27bbebad
18
app/components/admin/machine_learning/show_component.rb
Normal file
18
app/components/admin/machine_learning/show_component.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
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
|
||||
Reference in New Issue
Block a user