Top Level Namespace

Defined Under Namespace

Modules: Bulkrax, Hyrax, Loggable, Wings

Instance Method Summary collapse

Instance Method Details

#conditional_require(gem_name) ⇒ Object



18
19
20
21
22
# File 'lib/bulkrax.rb', line 18

def conditional_require(gem_name)
  require gem_name
rescue LoadError
  ENV["BULKRAX_NO_#{gem_name.upcase}"] = 'true'
end