プロジェクト

全般

プロフィール

« | » 

リビジョン 517decb4

高徹 高橋 徹 さんが約6年前に追加

[phase-22]Make it possible to search from redmine global search function.

差分を表示:

init.rb
Rails.configuration.to_prepare do
require_dependency "glossary_macros"
Redmine::Activity.register :glossary_terms
Redmine::Search.available_search_types << 'glossary_terms'
end
Redmine::Plugin.register :redmine_glossary do
......
project_module :glossary do
permission :view_glossary, {
permission :view_glossary_terms, {
glossary_terms: [:index, :show],
glossary_categories: [:index, :show]
}
permission :manage_glossary, {
permission :manage_glossary_terms, {
glossary_terms: [:new, :create, :edit, :update, :destroy],
glossary_categories: [:new, :create, :edit, :update, :destroy],
},
......
param: :project_id
end
Redmine::Activity.register :glossary_terms

他の形式にエクスポート: Unified diff