lib/carrierwave/jcrop.rb
def cropping?(attachment)
        !self.send(:"#{attachment}_crop_x").blank? &&
            !self.send(:"#{attachment}_crop_y").blank? &&
            !self.send(:"#{attachment}_crop_w").blank? &&
            !self.send(:"#{attachment}_crop_h").blank?
      end
# Checks if the attachment received cropping attributes
# @param  attachment [Symbol] Name of the attribute to be croppedv
#
# @return [Boolean]
Checks if the attachment received cropping attributes
Checks if the attachment received cropping attributes
def cropping?(attachment)
        !self.send(:"#{attachment}_crop_x").blank? &&
            !self.send(:"#{attachment}_crop_y").blank? &&
            !self.send(:"#{attachment}_crop_w").blank? &&
            !self.send(:"#{attachment}_crop_h").blank?
      end
def cropping? ( attachment ) ! self . send ( :" #{ attachment } _crop_x " ) . blank? && ! self . send ( :" #{ attachment } _crop_y " ) . blank? && ! self . send ( :" #{ attachment } _crop_w " ) . blank? && ! self . send ( :" #{ attachment } _crop_h " ) . blank? end
Checks if the attachment received cropping attributes
Checks if the attachment received cropping attributes
None
Boolean
attachment
Name of the attribute to be croppedv
Name of the attribute to be croppedv