Sha256: 04651af34b0bf31a20f8960ab91497f0155ed3fd1c88908f7c06b132ba60c693

Contents?: true

Size: 597 Bytes

Versions: 5

Compression:

Stored size: 597 Bytes

Contents

class ReportableJqueryFlotAssetsGenerator < Rails::Generators::Base

  include Rails::Generators::Actions

  source_root File.expand_path('../templates/', __FILE__)

  def create_jquery_flot_file
    empty_directory('public/javascripts')
    copy_file(
      File.join(File.dirname(__FILE__), 'templates', 'jquery.flot.min.js'),
      'public/javascripts/jquery.flot.min.js'
    )
    copy_file(
      File.join(File.dirname(__FILE__), 'templates', 'excanvas.min.js'),
      'public/javascripts/excanvas.min.js'
    )
    readme(File.join(File.dirname(__FILE__), 'templates', 'NOTES'))
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
reportable-1.4.2 lib/generators/reportable_jquery_flot_assets/reportable_jquery_flot_assets_generator.rb
reportable-1.4.1 lib/generators/reportable_jquery_flot_assets/reportable_jquery_flot_assets_generator.rb
reportable-1.4.0 lib/generators/reportable_jquery_flot_assets/reportable_jquery_flot_assets_generator.rb
reportable-1.3.1 generators/reportable_jquery_flot_assets/reportable_jquery_flot_assets_generator.rb
reportable-1.3.0 generators/reportable_jquery_flot_assets/reportable_jquery_flot_assets_generator.rb