Sha256: 859469157a334bca7c1425f7db01080a55cfe39ced3faca2a8ce9582ddb63b2a
Contents?: true
Size: 378 Bytes
Versions: 5
Compression:
Stored size: 378 Bytes
Contents
require 'sequel' module CarrierWave module Sequel include CarrierWave::Mount def mount_uploader(column, uploader) super alias_method :read_uploader, :[] alias_method :write_uploader, :[]= before_save do send("store_#{column}!") end end end # Sequel end # CarrierWave Sequel::Model.send(:extend, CarrierWave::Sequel)
Version data entries
5 entries across 5 versions & 2 rubygems