Class: AccountantClerk::Engine

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.activateObject



18
19
20
21
22
23
24
25
# File 'lib/accountant_clerk/engine.rb', line 18

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/helpers**/*.rb")) do |c|
    Rails.application.config.cache_classes ? require(c) : load(c)
  end
end

Instance Method Details

#office_assetsObject

indicate that we have stylesheet/js stuff to be added to office, with the given name files (css + js) must exist in asset path



7
8
9
# File 'lib/accountant_clerk/engine.rb', line 7

def office_assets
  "accountant_office"
end