Skip to content

Instantly share code, notes, and snippets.

View ffullenk's full-sized avatar

Francisco Fullenkamp ffullenk

View GitHub Profile
# config/initializers/carrierwave_direct.rb
require "carrierwave_direct"
module CarrierWaveDirect
module SignatureFixMonkeyPatch
def policy(options = {})
options[:expiration] ||= upload_expiration
options[:min_file_size] ||= min_file_size
options[:max_file_size] ||= max_file_size