MiniProfiler/rack-mini-profiler

View on GitHub
lib/generators/rack_mini_profiler/install_generator.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module RackMiniProfiler
  module Generators
    class InstallGenerator < ::Rails::Generators::Base
      source_root File.expand_path("templates", __dir__)

      def create_initializer_file
        copy_file "rack_mini_profiler.rb", "config/initializers/rack_mini_profiler.rb"
      end
    end
  end
end