Class: SpreeEditor::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SpreeEditor::Generators::InstallGenerator
- Defined in:
- lib/generators/spree_editor/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_javascripts ⇒ Object
5 6 7 |
# File 'lib/generators/spree_editor/install_generator.rb', line 5 def add_javascripts append_file "app/assets/javascripts/admin/all.js", "//= require admin/spree_editor\n" end |
#add_stylesheets ⇒ Object
9 10 11 |
# File 'lib/generators/spree_editor/install_generator.rb', line 9 def add_stylesheets inject_into_file "app/assets/stylesheets/admin/all.css", " *= require admin/spree_editor\n", :before => /\*\//, :verbose => true end |