Class: CarrierWave::Mounter::Single

Inherits:
CarrierWave::Mounter show all
Defined in:
lib/carrierwave/mounter.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from CarrierWave::Mounter

#column, #download_errors, #integrity_errors, #processing_errors, #record, #remote_request_headers, #remote_urls, #remove, #uploader_options

Instance Method Summary collapse

Methods inherited from CarrierWave::Mounter

#blank?, #blank_uploader, build, #cache, #cache_names, #cache_names=, #clear!, #identifiers, #initialize, #read_identifiers, #remove!, #remove?, #remove_added, #remove_previous, #reset_changes!, #serialization_column, #store!, #uploader_class, #uploaders, #urls, #write_identifier

Constructor Details

This class inherits a constructor from CarrierWave::Mounter

Instance Method Details

#identifierObject

:nodoc



7
8
9
# File 'lib/carrierwave/mounter.rb', line 7

def identifier
  uploaders.first&.identifier
end

#temporary_identifierObject



11
12
13
# File 'lib/carrierwave/mounter.rb', line 11

def temporary_identifier
  temporary_identifiers.first
end