Sha256: fc45fa80585270b5a6ad0ad36421f39f5c18add5116ecc8bc7b5ba92dff9e4da
Contents?: true
Size: 393 Bytes
Versions: 20
Compression:
Stored size: 393 Bytes
Contents
require 'rails/generators' module Umlaut class RemoveTurbolinks < Rails::Generators::Base def remove_turbolinks_js_reference gsub_file "app/assets/javascripts/application.js", /\/\/\= require ['"]?turbolinks['"]?\n?/, '' end def remove_turbolinks_gem gsub_file "Gemfile", /( *\# Turbolinks.*\n)? *gem ['"]turbolinks['"].*\n/, '', :verbose => true end end end
Version data entries
20 entries across 20 versions & 1 rubygems