Class: Pushpop::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Pushpop::Generators::InstallGenerator
- Defined in:
- lib/generators/pushpop/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_css ⇒ Object
11 12 13 |
# File 'lib/generators/pushpop/install/install_generator.rb', line 11 def add_css insert_into_file "app/assets/stylesheets/application.css", " *= require pushpop_rails\n", :after => "*= require_tree .\n" end |
#add_javascript ⇒ Object
7 8 9 |
# File 'lib/generators/pushpop/install/install_generator.rb', line 7 def add_javascript insert_into_file "app/assets/javascripts/application.js","//= require pushpop_rails\n", :before => "//= require_tree ." end |