class Cookieconsent::Generators::InstallGenerator
Public Instance Methods
add_javascript()
click to toggle source
# File lib/generators/cookieconsent/install/install_generator.rb, line 4 def add_javascript append_file 'app/assets/javascripts/application.js', "//= require cookieconsent\n" end
add_stylesheet()
click to toggle source
# File lib/generators/cookieconsent/install/install_generator.rb, line 7 def add_stylesheet inject_into_file 'app/assets/stylesheets/application.css', "*= require cookieconsent\n", before: /\*\//, verbose: true end