lib/papercrop/model_extension.rb
# Sets all cropping attributes to nil
# @param  attachment_name [Symbol]
Sets all cropping attributes to nil
Sets all cropping attributes to nil
def reset_crop_attributes_of(attachment_name)
        [:crop_x, :crop_y, :crop_w, :crop_h].each do |a|
          self.send :"#{attachment_name}_#{a}=", nil
        end
      end
def reset_crop_attributes_of ( attachment_name ) [ :crop_x , :crop_y , :crop_w , :crop_h ] . each do | a | self . send :" #{ attachment_name } _ #{ a } = " , nil end end
Sets all cropping attributes to nil
Sets all cropping attributes to nil
attachment_name
<not_specific>
<not_specific>
None