module Shrine::Plugins::Versions::InstanceMethods

  1. lib/shrine/plugins/versions.rb

Methods

Public Instance

  1. uploaded?

Public Instance methods

uploaded? (object)

Checks whether all versions are uploaded by this uploader.

[show source]
   # File lib/shrine/plugins/versions.rb
53 def uploaded?(object)
54   if object.is_a?(Hash)
55     object.all? { |name, version| uploaded?(version) }
56   elsif object.is_a?(Array)
57     object.all? { |version| uploaded?(version) }
58   else
59     super
60   end
61 end