-
Notifications
You must be signed in to change notification settings - Fork 11
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
base: main
Are you sure you want to change the base?
Add ActiveStorage #1952
Conversation
21c5f96
to
b25e275
Compare
|
||
def perform(icon_id) | ||
icon = Icon.find(icon_id) | ||
raise IconNotUploaded, "Icon #{icon.id} is remotely hosted" unless icon.s3_key.present? |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
b25e275
to
5e3c231
Compare
No description provided.