module Shrine::Plugins::Model

  1. lib/shrine/plugins/model.rb

Documentation can be found on shrinerb.com/docs/plugins/model

Methods

Public Class

  1. configure
  2. load_dependencies

Public Class methods

configure(uploader, **opts)
[show source]
   # File lib/shrine/plugins/model.rb
11 def self.configure(uploader, **opts)
12   uploader.opts[:model] ||= { cache: true }
13   uploader.opts[:model].merge!(opts)
14 end
load_dependencies(uploader, **)
[show source]
  # File lib/shrine/plugins/model.rb
7 def self.load_dependencies(uploader, **)
8   uploader.plugin :entity
9 end