forked from simeji/readme_at_repositories
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
22 lines (19 loc) · 730 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'display_readme'
require 'extend_project_setting'
Redmine::Plugin.register :readme_at_repositories do
name 'Readme At Repositories plugin'
author 'Tsubasa Nagasawa'
description 'Display "README" at repository tab'
version '0.3.0'
url 'https://github.com/simeji/readme_at_repositories'
author_url 'https://github.com/simeji/readme_at_repositories'
project_module :readme_at_repository do
permission :manage, :rar_project_settings => [:update], :require => :member
end
end
ActionDispatch::Callbacks.to_prepare do
require_dependency 'projects_helper'
unless ProjectsHelper.included_modules.include? ExtendRarProjectsSetting
ProjectsHelper.send(:include, ExtendRarProjectsSetting)
end
end