Skip to content

Commit

Permalink
Track Deprecation of :name_prefix in Rails 3 RC
Browse files Browse the repository at this point in the history
  • Loading branch information
bodhi authored and josevalim committed Jun 23, 2010
1 parent cfadaf8 commit 21874d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/devise/rails/routes.rb
Expand Up @@ -128,25 +128,25 @@ def devise_session(mapping, controllers)
end

def devise_password(mapping, controllers)
scope mapping.full_path, :name_prefix => mapping.name do
scope mapping.full_path, :as => 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, :name_prefix => mapping.name do
scope mapping.full_path, :as => 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, :name_prefix => mapping.name do
scope mapping.full_path, :as => 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], :name_prefix => mapping.name do
scope mapping.full_path[1..-1], :as => 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
Expand Down

0 comments on commit 21874d8

Please sign in to comment.