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