Sha256: 0520674721cd2abe1b4cafd5fefeb7c4e945d1077a9b628afb352b68b656bfe2
Contents?: true
Size: 915 Bytes
Versions: 8
Compression:
Stored size: 915 Bytes
Contents
if defined?(Rails) && Rails::VERSION::MAJOR >= 3 class GraficoAssetsGenerator < Rails::Generators::Base include Rails::Generators::Actions def create_grafico_file empty_directory('public/javascripts') copy_file( File.join(File.dirname(__FILE__), 'templates', 'raphael-min.js'), 'public/javascripts/raphael.js' ) copy_file( File.join(File.dirname(__FILE__), 'templates', 'grafico.min.js'), 'public/javascripts/grafico.js' ) readme(File.join(File.dirname(__FILE__), 'templates', 'NOTES')) end end else class GraficoAssetsGenerator < Rails::Generator::Base def manifest record do |m| m.directory('public/javascripts') m.file('raphael-min.js', 'public/javascripts/raphael.js') m.file('grafico.min.js', 'public/javascripts/grafico.js') m.readme('NOTES') end end end end
Version data entries
8 entries across 8 versions & 1 rubygems