Permalink
Browse files

Remove crufty code post-Devise

  • Loading branch information...
1 parent 613feed commit a2f1af1c5ff17e039ba3a8e2bc61021c76a59353 Mark Steckel committed Aug 28, 2013
Showing with 0 additions and 9 deletions.
  1. +0 −9 app/validators/old_password_validator.rb
@@ -1,9 +0,0 @@
-class OldPasswordValidator < ActiveModel::EachValidator
- def validate_each(object, attribute, value)
- old_user = User.find(object.id)
-# unless old_user.authenticate value
- unless sign_in old_user, attribute => value
- object.errors[attribute] << (options[:message] || " is not your previous password")
- end
- end
-end

0 comments on commit a2f1af1

Please sign in to comment.