From ca7fffd98ba29b3971b27e2fb4c944ba1b341fd9 Mon Sep 17 00:00:00 2001 From: Duy Trinh Duc Date: Wed, 27 May 2020 13:32:51 +0700 Subject: [PATCH 1/2] Add middleware after load_config_initializers --- lib/cypress_on_rails/railtie.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cypress_on_rails/railtie.rb b/lib/cypress_on_rails/railtie.rb index 530ee29..4565377 100644 --- a/lib/cypress_on_rails/railtie.rb +++ b/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 end From cce035743c84f189593b022119d018c5897f01f9 Mon Sep 17 00:00:00 2001 From: Grant Petersen-Speelman Date: Fri, 29 May 2020 08:13:20 +1000 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c67443..49590f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [Unreleased] +[Compare]: https://github.com/shakacode/cypress-on-rails/compare/v1.6.0...master + +### Fixed +* Add middleware after load_config_initializers [PR 62](https://github.com/shakacode/cypress-on-rails/pull/62) by [duytd](https://github.com/duytd) + ## [1.6.0] [Compare]: https://github.com/shakacode/cypress-on-rails/compare/v1.5.1...v1.6.0