RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: tibra
Site: www.tibras.de
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?
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?