2019-11-15 00:44:28 +00:00
|
|
|
require "yaml"
|
|
|
|
module Cancerpredict
|
|
|
|
class Engine < ::Rails::Engine
|
|
|
|
initializer "cancerpredict" do
|
2019-11-15 00:51:53 +00:00
|
|
|
OrbitApp.registration "Cancerpredict", :type => "ModuleApp" do
|
2019-11-15 00:44:28 +00:00
|
|
|
base_url File.expand_path File.dirname(__FILE__)
|
|
|
|
taggable "cancerpredictfields"
|
|
|
|
categorizable
|
|
|
|
authorizable
|
|
|
|
widget_methods ["widget"]
|
|
|
|
widget_settings [{"data_count"=>1}]
|
2019-11-15 09:02:17 +00:00
|
|
|
frontend_enabled
|
2019-11-15 00:44:28 +00:00
|
|
|
side_bar do
|
|
|
|
head_label_i18n 'cancerpredict.cancerpredict', icon_class: "icons-megaphone"
|
|
|
|
available_for "users"
|
|
|
|
active_for_controllers (['admin/cancerpredicts'])
|
2019-11-15 09:02:17 +00:00
|
|
|
head_link_path "admin_cancerpredicts_path"
|
2019-11-15 00:44:28 +00:00
|
|
|
|
|
|
|
context_link 'cancerpredict.cancerpredict',
|
|
|
|
:link_path=>"admin_cancerpredicts_path" ,
|
|
|
|
:priority=>1,
|
|
|
|
:active_for_action=>{'admin/cancerpredicts'=>'index'},
|
|
|
|
:available_for => 'users'
|
2019-12-11 15:59:17 +00:00
|
|
|
context_link 'cancerpredict.submitResult',
|
|
|
|
:link_path=>"admin_cancerpredicts_showSubmit_path" ,
|
|
|
|
:priority=>1,
|
|
|
|
:active_for_action=>{'admin/cancerpredicts'=>'show_submit'},
|
|
|
|
:available_for => 'users'
|
2019-11-15 00:44:28 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|