Sha256: 6c4029eeadf8ad961e8f2c9fac0946cfe01a804e950d7e2e833ab37c5a833d88
Contents?: true
Size: 819 Bytes
Versions: 2
Compression:
Stored size: 819 Bytes
Contents
class Lockbox class Railtie < Rails::Railtie initializer "lockbox" do |app| require "lockbox/carrier_wave_extensions" if defined?(CarrierWave) if defined?(ActiveStorage) require "lockbox/active_storage_extensions" ActiveStorage::Attached.prepend(Lockbox::ActiveStorageExtensions::Attached) ActiveStorage::Attached::One.prepend(Lockbox::ActiveStorageExtensions::AttachedOne) ActiveStorage::Attached::Many.prepend(Lockbox::ActiveStorageExtensions::AttachedMany) ActiveRecord::Base.extend(Lockbox::ActiveStorageExtensions::Model) if defined?(ActiveRecord) end app.config.to_prepare do if defined?(ActiveStorage) ActiveStorage::Attachment.include(Lockbox::ActiveStorageExtensions::Attachment) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lockbox-0.1.1 | lib/lockbox/railtie.rb |
lockbox-0.1.0 | lib/lockbox/railtie.rb |