Mercurial > hg > soundsoftware-site
comparison config/initializers/00-core_plugins.rb @ 1115:433d4f72a19b redmine-2.2
Update to Redmine SVN revision 11137 on 2.2-stable branch
author | Chris Cannam |
---|---|
date | Mon, 07 Jan 2013 12:01:42 +0000 |
parents | |
children | 261b3d9a4903 |
comparison
equal
deleted
inserted
replaced
929:5f33065ddc4b | 1115:433d4f72a19b |
---|---|
1 # Loads the core plugins located in lib/plugins | |
2 Dir.glob(File.join(Rails.root, "lib/plugins/*")).sort.each do |directory| | |
3 if File.directory?(directory) | |
4 lib = File.join(directory, "lib") | |
5 if File.directory?(lib) | |
6 $:.unshift lib | |
7 ActiveSupport::Dependencies.autoload_paths += [lib] | |
8 end | |
9 initializer = File.join(directory, "init.rb") | |
10 if File.file?(initializer) | |
11 config = config = RedmineApp::Application.config | |
12 eval(File.read(initializer), binding, initializer) | |
13 end | |
14 end | |
15 end |