We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc1563c commit a5809ddCopy full SHA for a5809dd
CHANGELOG.md
@@ -1,3 +1,9 @@
1
+## [Unreleased]
2
+[Compare]: https://github.com/shakacode/cypress-on-rails/compare/v1.6.0...master
3
+
4
+### Fixed
5
+* Add middleware after load_config_initializers [PR 62](https://github.com/shakacode/cypress-on-rails/pull/62) by [duytd](https://github.com/duytd)
6
7
## [1.6.0]
8
[Compare]: https://github.com/shakacode/cypress-on-rails/compare/v1.5.1...v1.6.0
9
lib/cypress_on_rails/railtie.rb
@@ -4,7 +4,7 @@
module CypressOnRails
class Railtie < Rails::Railtie
- initializer :setup_cypress_middleware do |app|
+ initializer :setup_cypress_middleware, after: :load_config_initializers do |app|
if CypressOnRails.configuration.use_middleware?
app.middleware.use Middleware
10
end
0 commit comments