Class: Integral::Generators::AssetsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Integral::Generators::AssetsGenerator
- Defined in:
- lib/generators/integral/assets_generator.rb
Overview
Generates a copy of Integral assets
Instance Method Summary collapse
-
#copy_backend_assets ⇒ Object
Copies over backend assets.
-
#copy_frontend_assets ⇒ Object
Copies over frontend assets.
-
#copy_mailer_assets ⇒ Object
Copies over mailer assets.
Instance Method Details
#copy_backend_assets ⇒ Object
Copies over backend assets
14 15 16 17 18 19 |
# File 'lib/generators/integral/assets_generator.rb', line 14 def copy_backend_assets return unless ['asset_list'].include?('backend') file 'stylesheets/integral/backend.scss' directory 'stylesheets/integral/backend' end |
#copy_frontend_assets ⇒ Object
Copies over frontend assets
22 23 24 25 26 27 |
# File 'lib/generators/integral/assets_generator.rb', line 22 def copy_frontend_assets return unless ['asset_list'].include?('frontend') file 'stylesheets/integral/frontend.scss' directory 'stylesheets/integral/frontend' end |
#copy_mailer_assets ⇒ Object
Copies over mailer assets
30 31 32 33 34 35 |
# File 'lib/generators/integral/assets_generator.rb', line 30 def copy_mailer_assets return unless ['asset_list'].include?('email') file 'stylesheets/integral/emails.scss' directory 'stylesheets/integral/emails' end |