Skip to content

Instantly share code, notes, and snippets.

@spacecowb0y
Created April 7, 2011 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spacecowb0y/908062 to your computer and use it in GitHub Desktop.
Save spacecowb0y/908062 to your computer and use it in GitHub Desktop.
def password_changed?
new? or dirty_attributes.has_key?(:password)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment