Sha256: e9fa66727cb5c0aa8ce50e3b595311c08b481a34b25bb3b9a0d0307f6d654aad
Contents?: true
Size: 826 Bytes
Versions: 5
Compression:
Stored size: 826 Bytes
Contents
module Voltron module Flash module Generators module Install class AssetsGenerator < Rails::Generators::Base source_root File.expand_path("../../../../templates", __FILE__) desc "Install Voltron Flash assets" def copy_javascripts_assets copy_file "app/assets/javascripts/voltron-flash.js", Rails.root.join("app", "assets", "javascripts", "voltron-flash.js") end def copy_stylesheets_assets copy_file "app/assets/stylesheets/voltron-flash.scss", Rails.root.join("app", "assets", "stylesheets", "voltron-flash.scss") end def copy_views copy_file "app/views/voltron/flash.html.erb", Rails.root.join("app", "views", "voltron", "flash.html.erb") end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems