heartcombo / devise

Flexible authentication solution for Rails with Warden.
http://blog.plataformatec.com.br/tag/devise/
MIT License
23.83k stars 5.53k forks source link

format: false does not work #5689

Open collimarco opened 1 month ago

collimarco commented 1 month ago

Environment

Current behavior

If you want to disable the format in Devise routes, this should work (based on comments in source code):

devise_for :users, format: false

However it seems that it doesn't have any effects.

Expected behavior

It should remove the format part from routes.

Current workaround

The only workaround that I found is currently this (which works properly):

scope format: false do
  devise_for :users
end