Class: Governor::AddAssetsGenerator

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

Instance Method Summary collapse

Instance Method Details

#install_javascriptsObject



7
8
9
# File 'lib/generators/governor/add_assets_generator.rb', line 7

def install_javascripts
  copy_file 'assets/javascripts/governor-comments.js', 'public/javascripts/governor-comments.js'
end

#install_stylesheetsObject



11
12
13
# File 'lib/generators/governor/add_assets_generator.rb', line 11

def install_stylesheets
  copy_file 'assets/stylesheets/governor-comments.css', 'public/stylesheets/governor-comments.css'
end