mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Update lib/devise/rails/routes.rb
This commit is contained in:
parent
bb6d89bbc3
commit
03851cab90
1 changed files with 3 additions and 1 deletions
|
@ -210,7 +210,9 @@ module ActionDispatch::Routing
|
|||
devise_scope mapping.name do
|
||||
if block_given?
|
||||
ActiveSupport::Deprecation.warn "Passing a block to devise_for is deprecated. " \
|
||||
"Please call devise_scope :#{mapping.name} do ... end with the block instead", caller
|
||||
"Please remove the block from devise_for (only the block, the call to " \
|
||||
"devise_for must still exist) and call devise_scope :#{mapping.name} do ... end " \
|
||||
"with the block instead", caller
|
||||
yield
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue