Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect ActiveStorage default serving strategy #41186

Conversation

aliismayilov
Copy link
Contributor

fixes #41172

Summary

rails_blob_path and rails_blob_url should be generating urls based on the ActiveStorage default serving strategy.

Other Information

I wasn't sure where/if to add the changelog. Please let me know how to proceed.

@aliismayilov aliismayilov force-pushed the resolve_model_to_route-rails_storage_proxy branch from 0a35464 to 80f99a5 Compare January 25, 2021 08:51
@aliismayilov aliismayilov force-pushed the resolve_model_to_route-rails_storage_proxy branch from 80f99a5 to 8fe05ba Compare January 25, 2021 13:27
Copy link
Member

@composerinteralia composerinteralia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me. I'll pass this off to the folks with commit access. @georgeclaghorn perhaps?

activestorage/CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Daniel Colson <daniel.colson@hey.com>
@georgeclaghorn georgeclaghorn merged commit a205f51 into rails:main Jan 28, 2021
@aliismayilov aliismayilov deleted the resolve_model_to_route-rails_storage_proxy branch January 29, 2021 09:05
@aliismayilov
Copy link
Contributor Author

@rafaelfranca could you please include this PR in the next rails 6.1 release as well? The bug is fixed on the main branch, but still exists in rails 6.1.x releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ActiveStorage configuration resolve_model_to_route is not picked up by rails_blob_* URL generator
4 participants