Class: Jsdebug::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Jsdebug::Generators::InstallGenerator
- Defined in:
- lib/generators/jsdebug/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_install ⇒ Object
6 7 8 |
# File 'lib/generators/jsdebug/install/install_generator.rb', line 6 def generate_install copy_file "jsdebug.js", "app/assets/javascripts/jsdebug.js" end |
#inject_jsdebug ⇒ Object
10 11 12 13 14 |
# File 'lib/generators/jsdebug/install/install_generator.rb', line 10 def inject_jsdebug inject_into_file "app/assets/javascripts/application.js", :before => "//= require_tree" do "//= require_environment 'jsdebug' 'development'\n" end end |