RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: hab
The contents of the from_email method is short-hand for
def self.from_email(email) PasswordReset.new(User.find_by_email(email)) end
Ryan uses implicit parentheses and the fact that you can call other class-level methods without a prefix in a class-level method.
The contents of the from_email method is short-hand for
Ryan uses implicit parentheses and the fact that you can call other class-level methods without a prefix in a class-level method.