lib/generators/exception_track/install_generator.rb in exception-track-0.2.0 vs lib/generators/exception_track/install_generator.rb in exception-track-0.3.0

- old
+ new

@@ -1,17 +1,19 @@ -require 'rails/generators' +# frozen_string_literal: true + +require "rails/generators" module ExceptionTrack module Generators class InstallGenerator < Rails::Generators::Base desc "Create ExceptionTrack's base files" - source_root File.expand_path('../../../../', __FILE__) + source_root File.expand_path("../../..", __dir__) def add_initializer - template 'config/initializers/exception-track.rb', 'config/initializers/exception-track.rb' + template "config/initializers/exception-track.rb", "config/initializers/exception-track.rb" end def add_migrations - exec('rake exception_track:install:migrations') + exec("rake exception_track:install:migrations") end end end end