Sha256: 1d9f6e91ea9d1e5b488fa7971c56b663110711297e68875f73040cdfbc7a1f74

Contents?: true

Size: 747 Bytes

Versions: 10

Compression:

Stored size: 747 Bytes

Contents

# frozen_string_literal: true

module Alchemy
  module Dragonfly
    module S3
      class Engine < ::Rails::Engine
        engine_name "alchemy_dragonfly_s3"

        initializer "alchemy_dragonfly_s3.assets" do
          Rails.application.config.assets.precompile << "alchemy_dragonfly_s3_manifest.js"
        end

        config.to_prepare do
          files = [
            "attachment_monkey_patch.rb",
            "picture_monkey_patch.rb",
            "essence_picture_monkey_patch.rb",
          ].each do |filename|
            file = Alchemy::Dragonfly::S3::Engine.root.join("lib", "alchemy", filename)
            Rails.application.config.cache_classes ? require(file) : load(file)
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
alchemy-dragonfly-s3-3.6.6 lib/alchemy/dragonfly/s3/engine.rb
alchemy-dragonfly-s3-4.0.5 lib/alchemy/dragonfly/s3/engine.rb
alchemy-dragonfly-s3-5.0.6 lib/alchemy/dragonfly/s3/engine.rb
alchemy-dragonfly-s3-5.0.5 lib/alchemy/dragonfly/s3/engine.rb
alchemy-dragonfly-s3-4.0.4 lib/alchemy/dragonfly/s3/engine.rb
alchemy-dragonfly-s3-3.6.5 lib/alchemy/dragonfly/s3/engine.rb
alchemy-dragonfly-s3-4.0.3 lib/alchemy/dragonfly/s3/engine.rb
alchemy-dragonfly-s3-3.6.4 lib/alchemy/dragonfly/s3/engine.rb
alchemy-dragonfly-s3-4.0.2 lib/alchemy/dragonfly/s3/engine.rb
alchemy-dragonfly-s3-5.0.4 lib/alchemy/dragonfly/s3/engine.rb