lib/sorcery/model/adapters/mongoid.rb in sorcery-0.5.3 vs lib/sorcery/model/adapters/mongoid.rb in sorcery-0.5.21
- old
+ new
@@ -41,11 +41,11 @@
def transaction(&blk)
tap(&blk)
end
- def find_by_sorcery_token(token_attr_name, token)
+ def find_by_token(token_attr_name, token)
where(token_attr_name => token).first
end
def find_by_email(email)
where(sorcery_config.email_attribute_name => email).first
@@ -59,6 +59,6 @@
end
end
end
end
end
-end
+end
\ No newline at end of file