46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# File 'lib/reactive-core/gem_dependency.rb', line 46
def init_plugin
if @init == :rails
require(@lib) if @lib
else
require(@lib || @name) unless @lib == false
end
gem_path = File.expand_path(specification.full_gem_path)
specification.require_paths.map {|path| File.join(gem_path, path) }.each do |path|
begin
require File.join(path, 'reactive', 'init.rb')
return
rescue LoadError
if @init == :rails
return if load_rails_init(path)
end
end
end
end
|