27 lines
990 B
Ruby
27 lines
990 B
Ruby
|
require "yaml"
|
||
|
module Cancerpredict
|
||
|
class Engine < ::Rails::Engine
|
||
|
initializer "cancerpredict" do
|
||
|
OrbitApp.registration "cancerpredict", :type => "ModuleApp" do
|
||
|
base_url File.expand_path File.dirname(__FILE__)
|
||
|
taggable "cancerpredictfields"
|
||
|
categorizable
|
||
|
authorizable
|
||
|
widget_methods ["widget"]
|
||
|
widget_settings [{"data_count"=>1}]
|
||
|
side_bar do
|
||
|
head_label_i18n 'cancerpredict.cancerpredict', icon_class: "icons-megaphone"
|
||
|
available_for "users"
|
||
|
active_for_controllers (['admin/cancerpredicts'])
|
||
|
head_link_path "admin_cancerPredicts_path"
|
||
|
|
||
|
context_link 'cancerpredict.cancerpredict',
|
||
|
:link_path=>"admin_cancerpredicts_path" ,
|
||
|
:priority=>1,
|
||
|
:active_for_action=>{'admin/cancerpredicts'=>'index'},
|
||
|
:available_for => 'users'
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|