Class: WiceGrid::Generators::WiceGridAssetsPrototypeGenerator

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#active_js_frameworkObject

:nodoc:



9
10
11
# File 'lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb', line 9

def active_js_framework #:nodoc:
  'prototype'
end

#copy_stuffObject

:nodoc:



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb', line 16

def copy_stuff #:nodoc:
  template 'wice_grid_config.rb', 'config/initializers/wice_grid_config.rb'

  copy_file 'wice_grid.yml',  'config/locales/wice_grid.yml'

  copy_file 'wice_grid_prototype.js',  'public/javascripts/wice_grid.js'
  copy_file 'calendarview.js',  'public/javascripts/calendarview.js'
  copy_file 'wice_grid.css',  'public/stylesheets/wice_grid.css'
  copy_file 'calendarview.css',  'public/stylesheets/calendarview.css'

  %w(arrow_down.gif calendar_view_month.png expand.png page_white_find.png table_refresh.png
    arrow_up.gif delete.png page_white_excel.png  table.png tick_all.png untick_all.png ).each do |f|
      copy_file "icons/#{f}",  "public/images/icons/grid/#{f}"
  end
end

#inactive_js_frameworkObject

:nodoc:



12
13
14
# File 'lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb', line 12

def inactive_js_framework #:nodoc:
  'jquery'
end