To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 97 / 970663dda11fc93b0d151821842807874fff87e5.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (518 Bytes)
| 1 | 1296:038ba2d95de8 | Chris | # 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 |