Module: Shrine::Plugins::Model
- Defined in:
- lib/shrine/plugins/model.rb
Overview
Documentation can be found on shrinerb.com/docs/plugins/model
Defined Under Namespace
Modules: AttacherClassMethods, AttacherMethods, AttachmentMethods
Class Method Summary collapse
Class Method Details
.configure(uploader, **opts) ⇒ Object
11 12 13 14 |
# File 'lib/shrine/plugins/model.rb', line 11 def self.configure(uploader, **opts) uploader.opts[:model] ||= { cache: true } uploader.opts[:model].merge!(opts) end |
.load_dependencies(uploader) ⇒ Object
7 8 9 |
# File 'lib/shrine/plugins/model.rb', line 7 def self.load_dependencies(uploader, **) uploader.plugin :entity end |