Nishant Samel

Nishant Samel

Nishant is a Ruby on Rails Developer.
authorImg Nishant Samel

Rails adds `authenticate_by` method when using `has_secure_password`

Rails adds `authenticate_by` method that helps mitigate timing-based enumeration attacks.
authorImg Nishant Samel

Rails 7 adds previously_persisted? method to ActiveRecord

Rails 7 adds previously_persisted? method to check an object previously existed in the database and presently deleted.