Sha256: 93643eeefbbb40a4f93391fc257c54521809007c48517e4e2e92b3f5be649a8f

Contents?: true

Size: 509 Bytes

Versions: 34

Compression:

Stored size: 509 Bytes

Contents

# Loads the core plugins located in lib/plugins
Dir.glob(File.join(Rails.root, "lib/plugins/*")).sort.each do |directory|
  if File.directory?(directory)
    lib = File.join(directory, "lib")
    if File.directory?(lib)
      $:.unshift lib
      ActiveSupport::Dependencies.autoload_paths += [lib]
    end
    initializer = File.join(directory, "init.rb")
    if File.file?(initializer)
      config = RedmineApp::Application.config
      eval(File.read(initializer), binding, initializer)
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
redmine_extensions-0.0.39 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.0.38 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.0.37 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.1.11 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.1.10 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.0.36 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.0.34 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.1.09 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.1.07 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.1.06 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.1.05 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.1.04 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.1.03 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.0.33 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.1.02 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.1.01 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.0.29 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.0.28 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.0.27 spec/redmine/config/initializers/00-core_plugins.rb
redmine_extensions-0.0.24 spec/redmine/config/initializers/00-core_plugins.rb