Class: Schienenzeppelin::AddOns::Views
- Inherits:
-
Schienenzeppelin::AddOn
- Object
- Rails::Generators::Base
- Schienenzeppelin::AddOn
- Schienenzeppelin::AddOns::Views
- Defined in:
- lib/schienenzeppelin/addons/views.rb
Instance Attribute Summary
Attributes inherited from Schienenzeppelin::AddOn
Instance Method Summary collapse
Methods inherited from Schienenzeppelin::AddOn
apply, default_source_root, dependencies, get, identifier, #initialize
Constructor Details
This class inherits a constructor from Schienenzeppelin::AddOn
Instance Method Details
#apply ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/schienenzeppelin/addons/views.rb', line 8 def apply say 'Setting up custom landing page' directory 'app/views/layouts', 'app/views/layouts', force: true directory 'app/views/shared', 'app/views/shared' directory 'app/views/pages', 'app/views/pages' if uses?(:high_voltage) # Make sure we can access any images put into the images folder inject_into_file('app/javascript/packs/application.js', "require.context('../images', true)") directory 'app/javascript/images', 'app/javascript/images' end |