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

Upgrade trusty-cms to use Active Storage and Deprecate Paperclip #541

Merged
merged 14 commits into from
Oct 5, 2021

Conversation

danigirl329
Copy link
Member

Remove paperclip gem and replace with file validators, active storage, and image processing
replace model methods for paperclip with active storage
Update to version 5 of trusty cms
Instead of using config for image sizes, add preset sizes for normal, thumbnail, small and icon

danigirl329 and others added 14 commits September 24, 2021 10:39
…ed next bundle on other sites

Remove paperclip references / interpolation file
Rewrite the thumbnail method to check if the file can be variable (change sizes) and if so, return the proper one according to style.
I'm not sure this is the best way to write this yet. Maybe we should consider creating a variant model or something to store thumbnail and original and normal styles/sizes? Still noodling on that one.
… no new method or an active storage named method.
@danigirl329
Copy link
Member Author

Closes #251

@danigirl329 danigirl329 added the ruby Pull requests that update Ruby code label Oct 5, 2021
@danigirl329 danigirl329 linked an issue Oct 5, 2021 that may be closed by this pull request
2 tasks
@danigirl329 danigirl329 marked this pull request as ready for review October 5, 2021 15:45
@Crankums Crankums merged commit 5d73a41 into master Oct 5, 2021
@Crankums Crankums deleted the upgrade-to-active-storage branch October 5, 2021 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move TrustyCMS Asset Management to use ActiveStorage
2 participants