2014-06-04 03:55:13 +00:00
|
|
|
module PersonalJournal
|
|
|
|
class Engine < ::Rails::Engine
|
2015-01-09 07:30:13 +00:00
|
|
|
initializer "personal_journal" do
|
|
|
|
OrbitApp.registration "PersonalJournal",:type=> 'ModuleApp' do
|
2014-06-25 13:43:04 +00:00
|
|
|
module_label 'module_name.journal_paper'
|
2014-06-04 03:55:13 +00:00
|
|
|
base_url File.expand_path File.dirname(__FILE__)
|
2016-06-01 08:04:19 +00:00
|
|
|
personal_plugin :enable => true, :sort_number => '5', :app_name=>"JournalPaper", :intro_app_name=>"JournalPaperlIntro",:path=>"/plugin/personal_journal/profile",:front_path=>"/profile",:admin_path=>"/admin/journal_papers/",:i18n=>'module_name.journal_paper', :module_app_name=>'PersonalJournal', :one_line_title => true, :field_modifiable => true, :analysis => true, :analysis_path => "/admin/journal_papers/analysis"
|
2014-06-04 03:55:13 +00:00
|
|
|
|
2023-02-26 12:57:50 +00:00
|
|
|
begin
|
|
|
|
page_custom_option({year: '<%= f.select :year, (1930...(DateTime.now.year+5)).to_a.reverse, {:include_blank => ""}, {multiple: true} %>'})
|
|
|
|
page_custom_option({journal_type: '<% JournalType.all.each do |journal_type| %><label><%= f.check_box :journal_type, {multiple: true}, journal_type.id.to_s, nil %><%= journal_type.title %></label><% end %>'})
|
|
|
|
rescue => e
|
|
|
|
puts ['there_was_no_page_custom_option',e]
|
|
|
|
end
|
2014-06-04 03:55:13 +00:00
|
|
|
version "0.1"
|
2014-11-18 11:03:18 +00:00
|
|
|
desktop_enabled true
|
2014-06-04 03:55:13 +00:00
|
|
|
organization "Rulingcom"
|
|
|
|
author "RD dep"
|
|
|
|
intro "I am intro"
|
|
|
|
update_info 'some update_info'
|
2014-07-02 09:01:14 +00:00
|
|
|
frontend_enabled
|
|
|
|
icon_class_no_sidebar "icons-user"
|
2014-07-18 07:04:07 +00:00
|
|
|
data_count 1..10
|
2014-06-04 03:55:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2015-01-09 07:30:13 +00:00
|
|
|
|