module Shrine::Plugins::MetadataAttributes

  1. lib/shrine/plugins/metadata_attributes.rb

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

Methods

Public Class

  1. configure

Public Class methods

configure (uploader, mappings = {})
[show source]
   # File lib/shrine/plugins/metadata_attributes.rb
 9 def self.configure(uploader, mappings = {})
10   uploader.opts[:metadata_attributes_mappings] ||= {}
11   uploader.opts[:metadata_attributes_mappings].merge!(mappings)
12 end