Apr 15, 2019
Rails 6 deprecates update_attributes and update_attributes!
Rails 6 has deprecated update_attributes and update_attributes! in favor of update and update!
Apr 11, 2019
Rails 6 adds db:prepare rake task
Rails 6 adds db:prepare rake task which creates the database, loads the schema, runs the migrations and initializes with the seed data
Mar 5, 2019
Rails 6 adds Array#including, Array#excluding, Enumerable#including, Enumerable#excluding
Rails 6 adds Array#including, Array#excluding, Enumerable#including, Enumerable#excluding
Mar 5, 2019
Rails 6 adds Relation#reselect
Rails 6 add a reselect method to Relation. This is a short-hand for "unscope(:select).select(fields)".
Mar 3, 2019
Ruby 2.7 adds Enumerable#tally
Ruby 2.7 has added Enumerable#tally. It helps to tally occurrences of elements in an Enumerable.
Mar 2, 2019
Rails 6 adds support for timezones to Active Job
Rails 6 now supports preserving timezones to Active Job. It record what was the current timezone in effect when the job was enqueued and then restore when the job is executed in same way that the current locale is recorded and restored.
Mar 1, 2019
Rails 6 adds before? and after? methods to Date, DateTime, Time, and TimeWithZone.
Rails 6 adds before? and after? methods to Date, DateTime, Time, and TimeWithZone. This allows to check if a date/time value is before or after another date/time in a more readable way.
Feb 26, 2019
Ruby 2.7 adds shorthand operator for Object#method
Ruby 2.7 adds experimental shorthand operator for Object#method. Allows method object access using :, example File.:basename
Feb 26, 2019
Rails 6 adds negative scopes for all enum values
Rails 6 adds negative scopes for all enum values
Feb 24, 2019
Rails 6 adds Enumerable#index_with
Rails 6 adds Enumerable#index_with to allows creating a hash from an enumerable with the value from a passed block or a default argument.