Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a48d1b91cc
Fetching contributors…

Cannot retrieve contributors at this time

57 lines (47 sloc) 1.974 kb
# Copyright (C) 2012-2013 Harry Garrood
# This file is a part of redmine_release_notes.
# redmine_release_notes is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
# redmine_release_notes is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
# You should have received a copy of the GNU General Public License along with
# redmine_release_notes. If not, see <http://www.gnu.org/licenses/>.
require 'redmine'
require 'redmine_release_notes/hooks'
ActionDispatch::Callbacks.to_prepare do
# Patches to the Redmine core.
patched_classes = %w(issue issues_controller settings_controller version)
patched_classes.each do |core_class|
require_dependency core_class
"RedmineReleaseNotes::#{core_class.camelize}Patch".constantize.perform
end
end
Redmine::Plugin.register :redmine_release_notes do
name 'Redmine release notes plugin'
author 'Harry Garrood'
description 'A plugin for managing release notes.'
version '1.3.1-dev'
author_url 'https://github.com/hdgarrood'
requires_redmine :version_or_higher => '2.1.0'
# the partial won't be used, but can't be blank, because Redmine needs to
# think this plugin is configurable
settings :default => {
:default_generation_format_id => 1,
:enabled_tracker_ids => []
},
:partial => 'not_blank'
project_module :release_notes do
permission :release_notes,
{ :release_notes => [:index, :new, :generate] },
:public => true
end
menu :project_menu,
:release_notes,
{ :controller => 'release_notes', :action => 'index' },
:caption => :'release_notes.title_plural',
:param => :project_id
end
Jump to Line
Something went wrong with that request. Please try again.