Rails 6.1 adds values_at attribute method for Active Record
19-Nov-2020 2061
Rails 6.1 simplifies retrieving values of attributes on the Active Record model instance by adding the values_at attribute method. This is similar to the values_at method in Hash and Array.Let’s check out an example of extracting values from a User model instance.
Rails 6.1 adds values_at attribute method for Active Record #ruby #rubydeveloper #rubyonrails #Rails #values_at #attribute #method #Active #Record #active #record https://rubyonrails.ba/link/rails-6-1-adds-values_at-attribute-method-for-active-record