Sha256: 4fd8e515e67e2f4c078633306838ea0a581c4ea55245081f4aff4932b824d8a1
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
if Saulabs::Reportable::IS_RAILS3 class ReportableRaphaelAssetsGenerator < Rails::Generators::Base include Rails::Generators::Actions 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 else class ReportableRaphaelAssetsGenerator < Rails::Generator::Base def manifest record do |m| m.directory('public/javascripts') m.file('raphael.min.js', 'public/javascripts/raphael.min.js') m.file('g.raphael.min.js', 'public/javascripts/g.raphael.min.js') m.file('g.line.min.js', 'public/javascripts/g.line.min.js') m.readme('NOTES') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reportable-1.1.0 | generators/reportable_raphael_assets/reportable_raphael_assets_generator.rb |