Sha256: 4df79116018b1cbf32a0a44295b6fb9ec8981ca5695e879e1b1d64ff017f5cb6

Contents?: true

Size: 1.01 KB

Versions: 9

Compression:

Stored size: 1.01 KB

Contents

module WiceGrid #:nodoc:
  module Generators #:nodoc:
    class WiceGridAssetsJqueryGenerator < Rails::Generators::Base #:nodoc:

      desc "Copy WiceGrid assets for JQuery based apps"
      source_root File.expand_path('../templates', __FILE__)

      def active_js_framework #:nodoc:
        'jquery'
      end
      def inactive_js_framework #:nodoc:
        'prototype'
      end


      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_jquery.js',  'public/javascripts/wice_grid.js'
        copy_file 'wice_grid.css',  'public/stylesheets/wice_grid.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

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wice_grid-3.0.4 lib/generators/wice_grid/wice_grid_assets_jquery_generator.rb
wice_grid-3.0.3 lib/generators/wice_grid/wice_grid_assets_jquery_generator.rb
wice_grid-3.0.2 lib/generators/wice_grid/wice_grid_assets_jquery_generator.rb
wice_grid-3.0.1 lib/generators/wice_grid/wice_grid_assets_jquery_generator.rb
wice_grid-3.0.0 lib/generators/wice_grid/wice_grid_assets_jquery_generator.rb
wice_grid-3.0.0.pre4 lib/generators/wice_grid/wice_grid_assets_jquery_generator.rb
wice_grid-3.0.0.pre3 lib/generators/wice_grid/wice_grid_assets_jquery_generator.rb
wice_grid-3.0.0.pre2 lib/generators/wice_grid/wice_grid_assets_jquery_generator.rb
wice_grid-3.0.0.pre1 lib/generators/wice_grid/wice_grid_assets_jquery_generator.rb