Method: Edgarj::Engine.load_edgarj_conf_in_app

Defined in:
lib/edgarj/engine.rb

.load_edgarj_conf_in_appObject

Require/load application side edgarj config in RAILS_ROOT/config/edgarj/



12
13
14
15
16
17
18
19
20
# File 'lib/edgarj/engine.rb', line 12

def self.load_edgarj_conf_in_app
  [
    Dir.glob(File.join(Rails.root, "config/edgarj/**/*.rb"))
  ].flatten.each do |edgarj_conf|
    Rails.application.config.cache_classes ?
        require(edgarj_conf) :
        load(edgarj_conf)
  end
end