For years, we've been telling users to manually configure AnyCable middleware to support Devise authentication: https://docs.anycable.io/rails/authentication?id=devisewarden (usually, it's done via the anycable:setup generator, but still the initializer file is present and need to be maintained).
We can eliminate this step by introspecting the active Gemfile information and adding this middleware automatically if Devise is present.
TODO
Add an initializer (to our railtie) to check if Devise is present and automatically configure AnyCable middleware
There should be a configuration option to disable this behaviour
Remove the initializer generation from the anycable:setup generator
Context
For years, we've been telling users to manually configure AnyCable middleware to support Devise authentication: https://docs.anycable.io/rails/authentication?id=devisewarden (usually, it's done via the
anycable:setup
generator, but still the initializer file is present and need to be maintained).We can eliminate this step by introspecting the active Gemfile information and adding this middleware automatically if Devise is present.
TODO
Add an initializer (to our railtie) to check if Devise is present and automatically configure AnyCable middleware
Remove the initializer generation from the
anycable:setup
generator