Sha256: 47085864406a5931f2dad2cd8f6410f82c017514321aa2ae2d73e0f1c8dde28a

Contents?: true

Size: 381 Bytes

Versions: 1

Compression:

Stored size: 381 Bytes

Contents

require 'rails/generators'

module Sunrise
  module Votes
    class InstallGenerator < Rails::Generators::Base
      
      source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))

      desc "Copy javascript chart files"
      
      def copy_javascripts
        directory "javascripts/highcharts", "public/javascripts/highcharts"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sunrise-votes-0.1.2 lib/generators/sunrise/votes/install_generator.rb