Fix compat with Redmine 4

This commit is contained in:
Victor LABORIE 2019-05-20 10:00:39 +02:00
parent 745c2c7c37
commit de0695420b

View file

@ -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