Module: Stationed::Generators::Plugins::Turbolinks

Included in:
AppGenerator
Defined in:
lib/stationed/generators/plugins/turbolinks.rb

Instance Method Summary collapse

Instance Method Details

#finish_templateObject



5
6
7
8
9
# File 'lib/stationed/generators/plugins/turbolinks.rb', line 5

def finish_template
  gsub_file 'Gemfile', /^gem 'turbolinks'.*\n/, ''
  gsub_file 'app/assets/javascripts/application.js', %r{//= require turbolinks\n}, ''
  super
end