Sha256: 891e1447370b14ba80218088384dd26c166f748732d5fe3aa862297c78290124
Contents?: true
Size: 445 Bytes
Versions: 3
Compression:
Stored size: 445 Bytes
Contents
module Carrierwave module Base64 # Railtie class to load the carrierwave-base64 adapters # Loads adapters for ActiveRecord and Mongoid class Railtie < Rails::Railtie ActiveSupport.on_load :active_record do ActiveRecord::Base.extend Carrierwave::Base64::Adapter end ActiveSupport.on_load :mongoid do Mongoid::Document::ClassMethods.include Carrierwave::Base64::Adapter end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
carrierwave-base64-2.11.0 | lib/carrierwave/base64/railtie.rb |
carrierwave-base64-2.10.0 | lib/carrierwave/base64/railtie.rb |
carrierwave-base64-2.9.0 | lib/carrierwave/base64/railtie.rb |