Sha256: 5c4fa339038da004bc01954ce37cb8c359cdc719467e0183f630eb0e28678620
Contents?: true
Size: 718 Bytes
Versions: 4
Compression:
Stored size: 718 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) end app.config.to_prepare do if defined?(ActiveStorage) ActiveStorage::Attachment.include(Lockbox::ActiveStorageExtensions::Attachment) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lockbox-0.2.3 | lib/lockbox/railtie.rb |
lockbox-0.2.2 | lib/lockbox/railtie.rb |
lockbox-0.2.1 | lib/lockbox/railtie.rb |
lockbox-0.2.0 | lib/lockbox/railtie.rb |