lib/papercrop/model_extension.rb
# Asks if the attachment received a crop process
# @param  attachment_name [Symbol]
#
# @return [Boolean]
Asks if the attachment received a crop process
Asks if the attachment received a crop process
def cropping?(attachment_name)
        !self.send(:"#{attachment_name}_crop_x").blank? &&
        !self.send(:"#{attachment_name}_crop_y").blank? &&
        !self.send(:"#{attachment_name}_crop_w").blank? &&
        !self.send(:"#{attachment_name}_crop_h").blank?
      end
def cropping? ( attachment_name ) ! self . send ( :" #{ attachment_name } _crop_x " ) . blank? && ! self . send ( :" #{ attachment_name } _crop_y " ) . blank? && ! self . send ( :" #{ attachment_name } _crop_w " ) . blank? && ! self . send ( :" #{ attachment_name } _crop_h " ) . blank? end
Asks if the attachment received a crop process
Asks if the attachment received a crop process
None
Boolean
attachment_name
<not_specific>
<not_specific>
None