The select method in QueryMethods is also an enumerable method. Ideally, enumerable methods with block should delegate to records on CollectionProxy and not the scope.
This change fixes this behaviour that select with block doesn't return newly built records in has_many association
In a previous fix the regex in `titlelize` was updated to not match apostrophes to better reflect the nature of the transformation.
Unfortunately this had the side effect of breaking capitalization on the first word of a sub-string, eg: >> "This was 'fake news'".titleize => "This Was 'fake News'"
This change fixes this behaviour by extending the look-behind to check for word character apart from an apostrophe.
SchemaMigration model was extracted and SchemaMigration.table_name was being used instead in places where Migrator.schema_migrations_table_name was being used previously.
Migrator.schema_migrations_table_name is now deprecated in favour of SchemaMigration.table_name.
`Capybara::RackTest::Driver` does not support taking screenshots. If we call `#save_screenshot` on `Capybara::RackTest::Driver` , it will raise an error.
To prevent errors, if a driver in Systems test does not support screenshot, we do not call it after this change.
There were many other great pull requests this week from 20 contributors, including 4 first-timers. Thank you all!
Outside of code changes, we had many more good news this and the previous week.