cschiewek/devise_ldap_authenticatable — pull request #98 by JeredOdegard (2012-08-14 18:57:55+00:00)
Title: Fixed DEPRECATION Warning on Devise::Strategy

Kept getting this warning because the #validate method was not testing for nil resource.

DEPRECATION WARNING: an empty resource was given to Devise::Strategies::LdapAuthenticatable#validate. Please ensure the resource is not nil. (called from post at /Users/jodegard/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/forwardable.rb:182)

I changed the code in strategy.rb to reflect how it behaves in database_authenticatable and properly test for nil.