class EuCookies::Generators::InstallGenerator
Public Instance Methods
add_javascripts()
click to toggle source
# File lib/generators/eu_cookies/install/install_generator.rb, line 6 def add_javascripts append_file 'app/assets/javascripts/application.js', "//= require eu_cookies\n" end
add_stylesheets()
click to toggle source
# File lib/generators/eu_cookies/install/install_generator.rb, line 10 def add_stylesheets inject_into_file 'app/assets/stylesheets/application.css', "*= require eu_cookies\n", before: /\*\//, verbose: true end
create_stylesheet()
click to toggle source
# File lib/generators/eu_cookies/install/install_generator.rb, line 14 def create_stylesheet template 'eu_cookies.scss', 'app/assets/stylesheets/eu_cookies.scss' end