mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Revert "Track Deprecation of :name_prefix in Rails 3 RC"
Let's wait until a new Rails 3 release is out before applying this to maintain compatibility with Rails 3 beta 4.
This reverts commit 21874d8559
.
This commit is contained in:
parent
fccde42f20
commit
b2c2cb272f
1 changed files with 4 additions and 4 deletions
|
@ -128,25 +128,25 @@ module ActionDispatch::Routing
|
|||
end
|
||||
|
||||
def devise_password(mapping, controllers)
|
||||
scope mapping.full_path, :as => mapping.name do
|
||||
scope mapping.full_path, :name_prefix => mapping.name do
|
||||
resource :password, :only => [:new, :create, :edit, :update], :path => mapping.path_names[:password], :controller => controllers[:passwords]
|
||||
end
|
||||
end
|
||||
|
||||
def devise_confirmation(mapping, controllers)
|
||||
scope mapping.full_path, :as => mapping.name do
|
||||
scope mapping.full_path, :name_prefix => mapping.name do
|
||||
resource :confirmation, :only => [:new, :create, :show], :path => mapping.path_names[:confirmation], :controller => controllers[:confirmations]
|
||||
end
|
||||
end
|
||||
|
||||
def devise_unlock(mapping, controllers)
|
||||
scope mapping.full_path, :as => mapping.name do
|
||||
scope mapping.full_path, :name_prefix => mapping.name do
|
||||
resource :unlock, :only => [:new, :create, :show], :path => mapping.path_names[:unlock], :controller => controllers[:unlocks]
|
||||
end
|
||||
end
|
||||
|
||||
def devise_registration(mapping, controllers)
|
||||
scope mapping.full_path[1..-1], :as => mapping.name do
|
||||
scope mapping.full_path[1..-1], :name_prefix => mapping.name do
|
||||
resource :registration, :only => [:new, :create, :edit, :update, :destroy], :path => mapping.path_names[:registration],
|
||||
:path_names => { :new => mapping.path_names[:sign_up] }, :controller => controllers[:registrations]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue