Sha256: 61e95060e19dccaaf4f3f7009991657fdc0837fbde58fcad1bd4ec08fd8538f7
Contents?: true
Size: 717 Bytes
Versions: 5
Compression:
Stored size: 717 Bytes
Contents
class ReportableRaphaelAssetsGenerator < Rails::Generators::Base include Rails::Generators::Actions source_root File.expand_path('../templates/', __FILE__) def create_raphael_file empty_directory('public/javascripts') copy_file( File.join(File.dirname(__FILE__), 'templates', 'raphael.min.js'), 'public/javascripts/raphael.min.js' ) copy_file( File.join(File.dirname(__FILE__), 'templates', 'g.raphael.min.js'), 'public/javascripts/g.raphael.min.js' ) copy_file( File.join(File.dirname(__FILE__), 'templates', 'g.line.min.js'), 'public/javascripts/g.line.min.js' ) readme(File.join(File.dirname(__FILE__), 'templates', 'NOTES')) end end
Version data entries
5 entries across 5 versions & 1 rubygems