module Shrine::Plugins::Sequel

  1. lib/shrine/plugins/sequel.rb

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

Methods

Public Class

  1. configure

Public Class methods

configure (uploader, opts = {})
[show source]
   # File lib/shrine/plugins/sequel.rb
11 def self.configure(uploader, opts = {})
12   uploader.opts[:sequel_callbacks] = opts.fetch(:callbacks, uploader.opts.fetch(:sequel_callbacks, true))
13   uploader.opts[:sequel_validations] = opts.fetch(:validations, uploader.opts.fetch(:sequel_validations, true))
14 end