Nishant Samel

Nishant Samel

Nishant is a Ruby on Rails Developer.
authorImg Nishant Samel

ActiveRecord::Base#pluck adds support for hash values in Rails 7.2

ActiveRecord pluck and pick can accept hash values for specifying columns from Rails 7.2
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.