Sha256: 83580f105dd421a1f62c1801bae45d40cbae62f4e3d18ca8f8af5eba132524aa
Contents?: true
Size: 918 Bytes
Versions: 1
Compression:
Stored size: 918 Bytes
Contents
require 'thor/group' module ActiveCharts module Generators class Assets < Thor::Group include Thor::Actions source_root File.expand_path('../templates', __FILE__) def copy_stylesheets template 'active_charts.css.scss', 'app/assets/stylesheets/active_charts.css.scss' say ' - make sure to require or import it if you have customized your application.css file' end def copy_javascript template 'active_charts.js', 'app/assets/javascripts/active_charts.js' say ' - bundle active_charts.js in application.js by adding: //= require active_charts' say ' - if your application.js is loaded in document head, precompile the active_charts script separately by adding to config/initializers/assets.rb: Rails.application.config.assets.precompile += %w[active_charts.js]' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_charts-1.0.1 | lib/active_charts/generators/assets.rb |