class RemoveTurbolinks::Generators::RemoveGenerator
Public Instance Methods
remove_from_application_javascript()
click to toggle source
# File lib/generators/remove_turbolinks/remove_generator.rb, line 13 def remove_from_application_javascript gsub_file "app/assets/javascripts/application.js", /\/\/= require turbolinks[\r\n]/, "" end
remove_from_application_layout()
click to toggle source
# File lib/generators/remove_turbolinks/remove_generator.rb, line 9 def remove_from_application_layout gsub_file "app/views/layouts/application.html.erb", /, "data-turbolinks-track" => true/, "" end
remove_from_gemfile()
click to toggle source
# File lib/generators/remove_turbolinks/remove_generator.rb, line 4 def remove_from_gemfile gsub_file "Gemfile", /# Turbolinks makes following links in your web application faster. Read more: https:\/\/github.com\/rails\/turbolinks[\r\n]/, "" gsub_file "Gemfile", /gem 'turbolinks'[\r\n]/, "" end