Class: CarrierWave::DataMapper::Property::Uploader
- Inherits:
-
DataMapper::Property::String
- Object
- DataMapper::Property::String
- CarrierWave::DataMapper::Property::Uploader
- Defined in:
- lib/carrierwave/datamapper/property/uploader.rb
Instance Method Summary collapse
- #custom? ⇒ Boolean
-
#initialize(model, name, options = {}) ⇒ Uploader
constructor
A new instance of Uploader.
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, = {}) if ::DataMapper.const_defined?(:Validations) [:auto_validation] = false end super end |
Instance Method Details
#custom? ⇒ Boolean
8 9 10 |
# File 'lib/carrierwave/datamapper/property/uploader.rb', line 8 def custom? true end |