Module: Magellan::Extentions::Rails::Engine
- Included in:
- Rails::Engine
- Defined in:
- lib/magellan/extentions/rails/engine.rb
Instance Method Summary collapse
Instance Method Details
#eager_load! ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/magellan/extentions/rails/engine.rb', line 10 def eager_load! config = Magellan::Worker.worker.config unless config[:http_worker] self.config.eager_load_paths -= [::Rails.root.join("app/controllers").to_s] end unless config[:subscriber_worker] self.config.eager_load_paths -= [::Rails.root.join("app/subscribers").to_s] end super end |