module Shrine::Plugins::Versions::InstanceMethods

  1. lib/shrine/plugins/versions.rb

Methods

Public Instance

  1. uploaded?

Public Instance methods

uploaded? (uploaded_file)

Checks whether all versions are uploaded by this uploader.

[show source]
# File lib/shrine/plugins/versions.rb, line 167
def uploaded?(uploaded_file)
  if (hash = uploaded_file).is_a?(Hash)
    hash.all? { |name, version| uploaded?(version) }
  else
    super
  end
end