summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-05 15:00:27 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-05 15:00:27 +0000
commitca71cf380046d74d71e344da0dd85eed9de18f31 (patch)
treeee780c5c7a15ed41b136cfd7b80537442cbaa12f /lib
parentc084ef509f114d0d32891fc58d45817e6e11fa4e (diff)
downloadredmine-ca71cf380046d74d71e344da0dd85eed9de18f31.tar.gz
redmine-ca71cf380046d74d71e344da0dd85eed9de18f31.zip
Adds methods for loading and adding settings.
git-svn-id: http://svn.redmine.org/redmine/trunk@13719 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/plugin.rb5
1 files changed, 5 insertions, 0 deletions
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]