Initialize plugins settings fixed

This commit is contained in:
Alexander Meindl 2014-07-10 18:23:26 +02:00
parent 7c509091c1
commit d5b9e010d0
3 changed files with 9 additions and 3 deletions

View File

@ -87,6 +87,10 @@ Note: Redmine must be restarted after changing "Custom Help URL"</tt> value befo
## Changelog
### 0.4.6
- initialize plugins settings now works with other plugins
### 0.4.5
- option to remove help menu item

View File

@ -1 +1 @@
0.4.5
0.4.6

View File

@ -24,7 +24,7 @@ Redmine::Plugin.register :redmine_tweaks do
name 'Redmine Tweaks'
author 'AlphaNodes GmbH'
description 'Wiki and content extensions'
version '0.4.5'
version '0.4.6'
author_url 'http://alphanodes.com/'
url 'http://github.com/alexandermeindl/redmine_tweaks'
@ -76,8 +76,10 @@ if ActiveRecord::Base.connection.table_exists?(:settings)
#
# We now use overridden module RedmineCustomHelpUrl::Redmine::Info instead of directly calling
# Setting.plugin_redmine_custom_help_url['custom_help_url']
unless RedmineTweaks.settings[:remove_help]
Rails.configuration.to_prepare do
unless RedmineTweaks.settings[:remove_help]
Redmine::Plugin.find('redmine_tweaks').menu :top_menu, :help, RedmineTweaks::CustomHelpUrl::Redmine::Info.help_url, :html => {:target => '_blank'}, :last => true
end
end
require 'settings_helper'