-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: set default value of install_middleware to be true (#183)
- Loading branch information
1 parent
e4159a8
commit 2b09fa1
Showing
2 changed files
with
4 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
module Wovnrb | ||
class Railtie < Rails::Railtie | ||
initializer 'wovnrb.configure_rails_initialization' do |app| | ||
app.middleware.insert_before(0, Wovnrb::Interceptor) if Rails.configuration.wovnrb[:install_middleware] | ||
install_middleware = Rails.configuration.wovnrb.fetch(:install_middleware, true) | ||
|
||
app.middleware.insert_before(0, Wovnrb::Interceptor) if install_middleware | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Wovnrb | ||
VERSION = '3.0.2'.freeze | ||
VERSION = '3.0.3'.freeze | ||
end |