Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Result of ActiveStorage #attach is different from 5.2.3 to 6.0 and is not documented #36238
Steps to reproduce
Run the tests in the following app and then change the Rails version to 5.2.3 and run the tests again.
In 5.2.3, #attach returns the array of attachments, while in 6.0 it returns
If it is intended, should we document the change? Is there a suggested way to get the attachment objects after calling #attach? i.e. to accomplish something similar to: