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

Add ActiveStorage #1952

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Add ActiveStorage #1952

wants to merge 5 commits into from

Conversation

teceler
Copy link
Contributor

@teceler teceler commented Jan 21, 2024

No description provided.

@teceler teceler force-pushed the add/active-storage branch from 21c5f96 to b25e275 Compare January 21, 2024 22:32

def perform(icon_id)
icon = Icon.find(icon_id)
raise IconNotUploaded, "Icon #{icon.id} is remotely hosted" unless icon.s3_key.present?
Copy link
Contributor

Choose a reason for hiding this comment

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

possibly for another PR but: do we want to do this for all icons? we've discussed eliminating remote hosting before, and if this does it anyway?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think this is reuploading them like we'd want for that, iirc it's just entering them in activestorage with their current urls.

@teceler teceler force-pushed the add/active-storage branch from b25e275 to 5e3c231 Compare April 4, 2024 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants