Fix compat with Redmine 4
This commit is contained in:
parent
745c2c7c37
commit
de0695420b
1 changed files with 3 additions and 3 deletions
6
init.rb
6
init.rb
|
@ -29,7 +29,7 @@ def init_redmine_wiki_notes
|
|||
end
|
||||
|
||||
if Rails::VERSION::MAJOR >= 3
|
||||
ActionDispatch::Callbacks.to_prepare do
|
||||
Rails.configuration.to_prepare do
|
||||
init_redmine_wiki_notes
|
||||
end
|
||||
else
|
||||
|
@ -44,8 +44,8 @@ Redmine::Plugin.register :redmine_wiki_notes do
|
|||
author 'Daniel Seifert, Victor Laborie'
|
||||
description 'Allows adding different kinds of notes into a wiki page'
|
||||
url "http://www.github.com/vlaborie/redmine_wiki_notes" if respond_to?(:url)
|
||||
version '0.0.3'
|
||||
requires_redmine :version_or_higher => '2.3.0'
|
||||
version '0.0.4'
|
||||
requires_redmine :version_or_higher => '4.0.0'
|
||||
|
||||
RedCloth3::ALLOWED_TAGS << "div"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue