Class: PrintClerk::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- PrintClerk::Engine
- Defined in:
- lib/print_clerk.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#office_assets ⇒ Object
indicate that we have stylesheet/js stuff to be added to office, with the given name files (css + js) must exist in asset path.
Class Method Details
.activate ⇒ Object
18 19 20 21 22 |
# File 'lib/print_clerk.rb', line 18 def self.activate Dir.glob(File.join(File.dirname(__FILE__), '../app/**/*_decorator.rb')) do |c| Rails.configuration.cache_classes ? require(c) : load(c) end end |
Instance Method Details
#office_assets ⇒ Object
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/print_clerk.rb', line 7 def office_assets "print_office" end |