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

Crop attachments before saving associated model #56

Closed
wants to merge 1 commit into from
Closed

Crop attachments before saving associated model #56

wants to merge 1 commit into from

Conversation

oiorain
Copy link

@oiorain oiorain commented May 11, 2017

When cropping the image, we also update attributes like image_updated_at to persists theses changes. We need to calculate the new values before saving the model.

Fixes #27.

When cropping the image, we also update attributes like image_updated_at to persists theses changes. We need to calculate the new values before saving the model.
@joeltaylor
Copy link

joeltaylor commented Aug 30, 2017

Figured I'd also note that this will help keep Paperclip compatible with Rails 5.2 since ActiveRecord::Dirty methods will be deprecated for after(create|update|save) callbacks.

@rsantamaria do you see any blocking issues with this PR?

@oiorain oiorain closed this Sep 6, 2024
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.

attachment_update_at not updated
2 participants