Method: CarrierWave::Uploader#current_path

Defined in:
lib/carrierwave/uploader.rb

#current_pathString

Returns the path where the file is currently located.

Returns:

  • (String)

    the path where the file is currently located.



178
179
180
# File 'lib/carrierwave/uploader.rb', line 178

def current_path
  file.path if file.respond_to?(:path)
end