-
Notifications
You must be signed in to change notification settings - Fork 84
Description
I'm getting the above error message when clicking save from the crop image screen. I'm using the default form code for the preview / crop screen.
When hitting save I'm getting "wrong number of arguments (1 for 0)"
Looking at the error log, the error is being flagged on:
papercrop (0.3.0) lib/papercrop/model_extension.rb:124:inreprocess_cropped_attachment'`
Looking at that line the issue is in
if cropping?(attachment_name)
which looks like it should be expecting an argument, and the value of attachment_name is the correct attachment name.
I'm currently using Paperclip 4.2.1 (I've tried downgrading Paperclip to 3.4, just incase it was Paperclip issue, but still getting the error).
If you've any ideas to what the issue is or any suggestions to get to the root of the problem, they'd be most welcome.
Thanks