Permalink
Browse files

changed routes check so authenticatable strategy is not loaded by acc…

…ident
  • Loading branch information...
1 parent ac092aa commit e04534f4bba45f3f4e187fc07e5f2fbc46151638 @joshk committed Mar 27, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/devise_imapable/routes.rb
@@ -4,7 +4,7 @@
# reuse the session routes and controller
def imapable(routes, mapping)
- unless mapping.to.included_modules.include?(Devise::Models::Authenticatable)
+ unless mapping.to.respond_to?(:authenticate)
authenticatable(routes, mapping)
end
end

0 comments on commit e04534f

Please sign in to comment.