Sha256: bc5d461fe1bc8e73ce99f5d8b36f6398da19b790b6fa4f23292068cf90377829

Contents?: true

Size: 1.11 KB

Versions: 16

Compression:

Stored size: 1.11 KB

Contents

module WiceGrid
  module Generators
    class WiceGridAssetsPrototypeGenerator < Rails::Generators::Base

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


      def active_js_framework
        'prototype'
      end
      def inactive_js_framework
        'jquery'
      end

      def copy_stuff
        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

    end
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
wice_grid_mongo-6.2.4 lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb
wice_grid_mongoid-6.2.3 lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb
wice_grid_mongoid-6.2.2 lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb
wice_grid_mongoid-6.2.1 lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb
wice_grid_mongoid-6.2.0 lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb
wice_grid_mongoid-6.1.1 lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb
wice_grid_mongoid-6.1.0 lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb
wice_grid_mongoid-6.0.10 lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb
wice_grid_mongoid-6.0.9 lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb
wice_grid_mongoid-6.0.8 lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb
wice_grid_mongoid-6.0.7 lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb
wice_grid_mongoid-6.0.6 lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb
wice_grid_mongoid-6.0.5 lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb
wice_grid_mongoid-6.0.4 lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb
wice_grid_mongoid-6.0.3 lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb
mongoid_wice_grid-4.0.0 lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb