Module: OpenProject::Plugins::LoadDependency

Defined in:
lib/open_project/plugins/load_dependency.rb

Class Method Summary collapse

Class Method Details

.register(target, *dependencies) ⇒ Object



17
18
19
20
21
22
23
24
25
# File 'lib/open_project/plugins/load_dependency.rb', line 17

def self.register(target, *dependencies)

  ActiveSupport.on_load(target) do
    dependencies.each do |dependency|
      require_dependency dependency
    end
  end

end