Class: SpreeEditor::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/spree_editor/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_javascriptsObject



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_stylesheetsObject



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