class AnchorUi::Sprockets::InstallGenerator
Public Instance Methods
copy_assets()
click to toggle source
# File lib/generators/anchor_ui/sprockets/install_generator.rb, line 11 def copy_assets filename = 'application.js' copy_file filename, javascripts_path.join(filename) %w(application _variables _coreui).each do |name| filename = "#{name}.scss" copy_file filename, stylesheets_path.join(filename) end end
delete_application_css()
click to toggle source
# File lib/generators/anchor_ui/sprockets/install_generator.rb, line 21 def delete_application_css remove_file 'app/assets/stylesheets/application.css' end
override_layout()
click to toggle source
# File lib/generators/anchor_ui/sprockets/install_generator.rb, line 25 def override_layout generate_layout 'include', 'link', 'application' end
Private Instance Methods
assets_path()
click to toggle source
# File lib/generators/anchor_ui/sprockets/install_generator.rb, line 31 def assets_path Pathname.new 'app/assets' end