Colon_Cancer_Predict1/lib/coloncancerpredict1/engine.rb

40 lines
1.9 KiB
Ruby
Raw Permalink Normal View History

2022-05-23 10:32:51 +00:00
require "yaml"
module Coloncancerpredict1
class Engine < ::Rails::Engine
initializer "coloncancerpredict1" do
OrbitApp.registration "Coloncancerpredict1", :type => "ModuleApp" do
base_url File.expand_path File.dirname(__FILE__)
taggable "coloncancerpredictfields1s"
categorizable
authorizable
widget_methods ["widget"]
widget_settings [{"data_count"=>1}]
set_keyword_contstraints ['coloncancerpredict1Result']
frontend_enabled
side_bar do
2024-08-23 15:06:24 +00:00
head_label_i18n 'coloncancerpredict1.coloncancerpredict1', icon_class: "icons-tools"
available_for "users"
active_for_controllers (['admin/coloncancerpredict1s'])
head_link_path "admin_coloncancerpredict1s_path"
set_sidebar_order -9
2022-05-23 10:32:51 +00:00
2024-08-23 15:06:24 +00:00
context_link 'coloncancerpredict1.coloncancerpredict1',
2022-05-23 10:32:51 +00:00
:link_path=>"admin_coloncancerpredict1s_path" ,
:priority=>1,
:active_for_action=>{'admin/coloncancerpredict1s'=>'index'},
:available_for => 'users'
context_link 'coloncancerpredict1.submitResult',
:link_path=>"admin_coloncancerpredict1s_showSubmit_path" ,
:priority=>1,
:active_for_action=>{'admin/coloncancerpredict1s'=>'show_submit'},
:available_for => 'users'
context_link 'coloncancerpredict1.export_colon_cancer_predict1_tool_records',
:link_path=>"admin_coloncancerpredict1s_export_cancer_tool_record_path" ,
:priority=>1,
:active_for_action=>{'admin/coloncancerpredict1s'=>'export_cancer_tool_record'},
:available_for => 'users'
end
end
end
end
end