Sha256: 8f85f1af751ea33256b3fc7c5c71ebc72029b327d3a199c1746860ce27ddd9d2
Contents?: true
Size: 920 Bytes
Versions: 5
Compression:
Stored size: 920 Bytes
Contents
module Voltron module Upload module Generators module Install class AssetsGenerator < Rails::Generators::Base source_root File.expand_path('../../../../../../', __FILE__) desc 'Install Voltron Upload assets' def copy_javascripts_assets copy_file 'app/assets/javascripts/voltron-upload.js', Rails.root.join('app', 'assets', 'javascripts', 'voltron-upload.js') copy_file 'app/assets/javascripts/dropzone.js', Rails.root.join('app', 'assets', 'javascripts', 'dropzone.js') end def copy_stylesheets_assets copy_file 'app/assets/stylesheets/voltron-upload.scss', Rails.root.join('app', 'assets', 'stylesheets', 'voltron-upload.scss') copy_file 'app/assets/stylesheets/dropzone.scss', Rails.root.join('app', 'assets', 'stylesheets', 'dropzone.scss') end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems