Lots of solid improvements to Rails coming down the pipe. While there are some larger improvements, the little improvements help make several common patterns less tedious. The authenticate_by
method provides protection against common timing attacks. The generates_token_for
declaration streamlines the process of managing single-use tokens. And has_secure_password
can now automatically verify the current password when performing updates by providing a password_challenge
attribute on updates.