Documentation can be found on shrinerb.com/docs/plugins/model
Classes and Modules
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