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

Strategy for changing interpolation #66

Open
iredmedia opened this issue Apr 5, 2021 · 1 comment
Open

Strategy for changing interpolation #66

iredmedia opened this issue Apr 5, 2021 · 1 comment

Comments

@iredmedia
Copy link

If we have decided to change our interpolation mechanism - for example:

  'url' => '/:class_name/:id/:attachment/:style/:hash.:extension',

becomes

  'url' => '/:class_name/:id/:attachment/:style/:secure_hash.:extension',

How can we change this without breaking all of our existing assets, is there a predetermined migration path here?

@czim
Copy link
Owner

czim commented Apr 8, 2021

There is currently no official migration mechanism.

Your best bet is to make your own script that applies the transformation. It may be possible to use the interpolator in this package to your advantage for this.

This is definitely something I'd like an official migration process within the package for, but I won't have the time to implement something like that anywhere soon.

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

No branches or pull requests

2 participants