module Shrine::Plugins::Parallelize

  1. lib/shrine/plugins/parallelize.rb

Documentation lives in doc/plugins/parallelize.md on GitHub.

Methods

Public Class

  1. configure
  2. load_dependencies

Public Class methods

configure (uploader, opts = {})
[show source]
   # File lib/shrine/plugins/parallelize.rb
11 def self.configure(uploader, opts = {})
12   uploader.opts[:parallelize_threads] = opts.fetch(:threads, uploader.opts.fetch(:parallelize_threads, 3))
13 end
load_dependencies (uploader, opts = {})
[show source]
   # File lib/shrine/plugins/parallelize.rb
15 def self.load_dependencies(uploader, opts = {})
16   uploader.plugin :hooks
17 end