Skip to content

Commit

Permalink
There is no need for a delete /users/password route.
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbaddaden committed Jan 30, 2012
1 parent d994c04 commit 49b63aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/janus/routes.rb
Expand Up @@ -42,7 +42,6 @@ class Mapper
# new_user_password GET /users/password/new(.:format) {:controller=>"users/passwords", :action=>"new"}
# edit_user_password GET /users/password/edit(.:format) {:controller=>"users/passwords", :action=>"edit"}
# PUT /users/password(.:format) {:controller=>"users/passwords", :action=>"update"}
# DELETE /users/password(.:format) {:controller=>"users/passwords", :action=>"destroy"}
#
def janus(*resources)
ActionController::Base.send(:include, Janus::Helpers) unless ActionController::Base.include?(Janus::Helpers)
Expand All @@ -67,7 +66,7 @@ def janus(*resources)
end

resource :confirmation, :only => [:show, :new, :create] if options[:confirmation]
resource :password, :except => [:index, :show] if options[:password]
resource :password, :except => [:index, :show, :destroy] if options[:password]
end

ActionController::Base.janus(singular)
Expand Down

0 comments on commit 49b63aa

Please sign in to comment.