I want to do some processing on an uploaded image using RMagick before PaperClip which is specified in the model taken over.
Is there any way to accomplish this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can access the file data in the controller
paramsbefore passing it into your object. You probably have something like this in your controller:What you could do instead is:
I’m not sure how ActiveAdmin controllers work but you can probably inherit from them and modify only the actions you want to change.