Permalink
Browse files

remove check in routes as docs say not to add authenticatable, minor …

…name change as well
  • Loading branch information...
1 parent dde2a79 commit 7c613b3e676f6d7dee9ce87e11f0bc941c0f9b96 @joshk committed Mar 27, 2010
Showing with 2 additions and 6 deletions.
  1. +1 −1 lib/devise_imapable.rb
  2. +1 −5 lib/devise_imapable/routes.rb
View
@@ -21,4 +21,4 @@ module Devise
:strategy => true,
:controller => :sessions,
:model => 'devise_imapable/model',
- :routes => :imapable)
+ :routes => :imap_authenticate)
@@ -3,10 +3,6 @@
protected
# reuse the session routes and controller
- def imapable(routes, mapping)
- unless mapping.to.respond_to?(:authenticate)
- authenticatable(routes, mapping)
- end
- end
+ alias_method :imap_authenticate, :authenticate
end

0 comments on commit 7c613b3

Please sign in to comment.