Class: Pushpop::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#add_cssObject



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_javascriptObject



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