lib/papercrop/model_extension.rb
# Saves the attachment if the crop attributes are present
# @param  attachment_name [Symbol]
Saves the attachment if the crop attributes are present
Saves the attachment if the crop attributes are present
def reprocess_cropped_attachment(attachment_name)
          if cropping?(attachment_name)
            attachment_instance = send(attachment_name)
            attachment_instance.assign(attachment_instance)
            attachment_instance.save
            reset_crop_attributes_of(attachment_name)
          end
        end
def reprocess_cropped_attachment ( attachment_name ) if cropping? ( attachment_name ) attachment_instance = send ( attachment_name ) attachment_instance . assign ( attachment_instance ) attachment_instance . save reset_crop_attributes_of ( attachment_name ) end end
Saves the attachment if the crop attributes are present
Saves the attachment if the crop attributes are present
attachment_name
<not_specific>
<not_specific>
None