Sha256: 01a5d7cb778f73c19cee46ddfec9f4ba965967337ae7a63e8cfa12d49433faa2

Contents?: true

Size: 616 Bytes

Versions: 3

Compression:

Stored size: 616 Bytes

Contents

require 'dragonfly'

# Configure
Dragonfly.app.configure do
  plugin :imagemagick

  secret "bb1477846aa3593d53607ed5e776cce98378fefa22695f3c746afd79432d0ff3"

  url_format "/media/:job/:name"

  datastore :file,
    root_path: Rails.root.join('public/system/dragonfly', Rails.env),
    server_root: Rails.root.join('public')
end

# Logger
Dragonfly.logger = Rails.logger

# Mount as middleware
Rails.application.middleware.use Dragonfly::Middleware

# Add model functionality
if defined?(ActiveRecord::Base)
  ActiveRecord::Base.extend Dragonfly::Model
  ActiveRecord::Base.extend Dragonfly::Model::Validations
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
picco_blog-1.4.3 config/initializers/dragonfly.rb
picco_blog-1.4.2 config/initializers/dragonfly.rb
picco_blog-1.4.1 config/initializers/dragonfly.rb