Class: Object

Inherits:
BasicObject
Defined in:
lib/etl.rb

Overview

patch for github.com/activewarehouse/activewarehouse-etl/issues/24 allow components to require optional gems

Instance Method Summary collapse

Instance Method Details

#optional_require(feature) ⇒ Object



55
56
57
58
59
60
# File 'lib/etl.rb', line 55

def optional_require(feature)
  begin
    require feature
  rescue LoadError
  end
end