Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate rack_profiler:install in favour of rack_mini_profiler:insta…
…ll (#550) The gem's name and install generator should be the same.
- Loading branch information
Showing
5 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Description: | ||
Generates an initializer for rack-mini-profiler. Use an initializer when manually | ||
requiring rack-mini-profiler in your application (using require: false in your Gemfile). | ||
|
||
Example: | ||
`bin/rails generate rack_mini_profiler:install` | ||
|
||
This generates a an initializer that requires and initializes | ||
rack-mini-profiler in development mode. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters