lib/omniauth/identity/models/mongoid.rb in omniauth-identity-1.1.0 vs lib/omniauth/identity/models/mongoid.rb in omniauth-identity-1.1.1

- old
+ new

@@ -17,11 +17,11 @@ def self.auth_key=(key) super validates_uniqueness_of key, :case_sensitive => false end - def self.locate(key) - where(auth_key => key).first + def self.locate(search_hash) + where(search_hash).first end end end