Rails 6.1 adds values_at attribute method for Active Record

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 #active #record https://www.rubyonrails.ba/single/rails-6-1-adds-values_at-attribute-method-for-active-record

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles