1
0
Fork 0
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:
José Valim 2012-02-01 07:26:39 +01:00
parent bb6d89bbc3
commit 03851cab90

View file

@ -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