lib/carrierwave/jcrop.rb
def crop_image(attachment)
        if cropping?(attachment)
          attachment_instance = send(attachment)
          attachment_instance.recreate_versions!
        end
      end
# Saves the attachment if the crop attributes are present
# @param  attachment [Symbol] Name of the attribute to be cropped
Saves the attachment if the crop attributes are present
Saves the attachment if the crop attributes are present
def crop_image(attachment)
        if cropping?(attachment)
          attachment_instance = send(attachment)
          attachment_instance.recreate_versions!
        end
      end
def crop_image ( attachment ) if cropping? ( attachment ) attachment_instance = send ( attachment ) attachment_instance . recreate_versions! end end
Saves the attachment if the crop attributes are present
Saves the attachment if the crop attributes are present
attachment
Name of the attribute to be cropped
Name of the attribute to be cropped