Class: Fidelity::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#add_assetsObject



7
8
9
10
# File 'lib/fidelity/generators/install_generator.rb', line 7

def add_assets
  insert_into_file "app/assets/javascripts/application.js", "//= require fidelity/app\n", :after => "jquery_ujs\n"
  insert_into_file "app/assets/stylesheets/application.css", " *= require fidelity/app\n", :after => "require_self\n"
end