Class: AlreadyGridAssetsGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



4
5
6
# File 'lib/generators/already_grid_assets/already_grid_assets_generator.rb', line 4

def self.source_root
  File.join( File.dirname(__FILE__), 'templates' )
end

Instance Method Details

#install_already_grid_assetsObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/generators/already_grid_assets/already_grid_assets_generator.rb', line 8

def install_already_grid_assets
  copy_file "guilded.already_grid.js", "public/javascripts/guilded.already_grid.js"
  copy_file "guilded.already_grid.min.js", "public/javascripts/guilded.already_grid.min.js"
  copy_file "jquery-already_grid-0.1.js", "public/javascripts/jquery/jquery-already_grid-0.1.js"
  copy_file "jquery-already_grid-0.1.min.js", "public/javascripts/jquery/jquery-already_grid-0.1.min.js"
  copy_file "default.css", "public/stylesheets/guilded/already_grid/default.css"
  copy_file "gridHeadBg.gif", "public/stylesheets/guilded/already_grid/default/gridHeadBg.gif"
  copy_file "gridSort.gif", "public/stylesheets/guilded/already_grid/default/gridSort.gif"
  copy_file "gridSortAsc.gif", "public/stylesheets/guilded/already_grid/default/gridSortAsc.gif"
  copy_file "gridSortDesc.gif", "public/stylesheets/guilded/already_grid/default/gridSortDesc.gif"
end