Closed dmitryzuev closed 3 years ago
Thanks for the patch. I guess supporting API-only mode is harder than I thought. I wanted to support API-only apps that may be manually including ActionDispatch::Flash
, but that's hard to detect. Better to safely support the most common use cases instead 👍🏻
Hey,
I noticed that for fresh Rails 6.1.2 app in api-only mode error from https://github.com/janko/rodauth-rails/issues/13 is still present.
This is because
ActionDispatch::Flash
is existing constant in the app, but it doesn't included in Request:This PR changes rails api-only check so it'll rely on Rails configuration instead of defined constants.
Hope this help someone like me!