Class: CarrierWave::DataMapper::Property::Uploader

Inherits:
DataMapper::Property::String
  • Object
show all
Defined in:
lib/carrierwave/datamapper/property/uploader.rb

Instance Method Summary collapse

Constructor Details

#initialize(model, name, options = {}) ⇒ Uploader

Returns a new instance of Uploader.



12
13
14
15
16
17
18
# File 'lib/carrierwave/datamapper/property/uploader.rb', line 12

def initialize(model, name, options = {})
  if ::DataMapper.const_defined?(:Validations)
    options[:auto_validation] = false
  end

  super
end

Instance Method Details

#custom?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/carrierwave/datamapper/property/uploader.rb', line 8

def custom?
  true
end