Module: CarrierWave::Uploader::Dimension

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/carrierwave/uploader/dimension.rb

Instance Method Summary collapse

Instance Method Details

#height_rangeObject

Override this method in your uploader to provide a Range of height which are allowed to be uploaded.

Returns

NilClass, Range

a height range which are permitted to be uploaded

Examples

def height_range
  1000..
end


40
# File 'lib/carrierwave/uploader/dimension.rb', line 40

def height_range; end

#width_rangeObject

Override this method in your uploader to provide a Range of width which are allowed to be uploaded.

Returns

NilClass, Range

a width range which are permitted to be uploaded

Examples

def width_range
  1000..2000
end


25
# File 'lib/carrierwave/uploader/dimension.rb', line 25

def width_range; end