From ca71cf380046d74d71e344da0dd85eed9de18f31 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 5 Dec 2014 15:00:27 +0000 Subject: Adds methods for loading and adding settings. git-svn-id: http://svn.redmine.org/redmine/trunk@13719 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/plugin.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb index 9c67399d9..0b0712072 100644 --- a/lib/redmine/plugin.rb +++ b/lib/redmine/plugin.rb @@ -95,6 +95,11 @@ module Redmine #:nodoc: ActiveSupport::Dependencies.autoload_paths += [dir] end + # Defines plugin setting if present + if p.settings + Setting.define_plugin_setting p + end + # Warn for potential settings[:partial] collisions if p.configurable? partial = p.settings[:partial] -- cgit v1.2.3