Class: HtmlInvoice::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/spree_html_invoice.rb

Class Method Summary collapse

Class Method Details

.activateObject



5
6
7
8
9
10
11
12
# File 'lib/spree_html_invoice.rb', line 5

def self.activate
  Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
    Rails.application.config.cache_classes ? require(c) : load(c)
  end
  Dir.glob(File.join(File.dirname(__FILE__), "../app/overrides/**/*.rb")) do |c|
    Rails.application.config.cache_classes ? require(c) : load(c)
  end
end