Sha256: 30403d58d4d176fbb94b639a4950e369697976a0305fb40ef99ab6b93d5dfcc0
Contents?: true
Size: 965 Bytes
Versions: 1
Compression:
Stored size: 965 Bytes
Contents
if Saulabs::Reportable::IS_RAILS3 class ReportableJqueryFlotAssetsGenerator < Rails::Generators::Base include Rails::Generators::Actions 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 else class ReportableJqueryFlotAssetsGenerator < Rails::Generator::Base def manifest record do |m| m.directory('public/javascripts') m.file('jquery.flot.min.js', 'public/javascripts/jquery.flot.min.js') m.file('excanvas.min.js', 'public/javascripts/excanvas.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_jquery_flot_assets/reportable_jquery_flot_assets_generator.rb |