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

Version Path
umlaut-4.1.7 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.1.6 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.1.5 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.1.4 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.1.3 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.1.2 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.1.1 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.1.0 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.1.0.pre3 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.1.0.pre.2 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.1.0.pre.alpha.1 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.0.3 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.0.2 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.0.1 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.0.0 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.0.0.beta5 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.0.0.beta4 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.0.0.beta3 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.0.0.beta2 lib/generators/umlaut/remove_turbolinks_generator.rb
umlaut-4.0.0.beta1 lib/generators/umlaut/remove_turbolinks_generator.rb