RailsCasts Pro episodes are now free!

Learn more or hide this

Tim Brandes's Profile

GitHub User: tibra

Site: www.tibras.de

Comments by Tim Brandes

Avatar

Ryan, is there any need to flush passwords after save? I usually do something like this in my model:

after_save :flush_passwords
private
def flush_passwords
  @password = @password_confirmation = nil
end

Needless or important?