Sha256: 1333eada662d5d262970795a752ac540014b82b83c8bec2efebcfaff40edc09c

Contents?: true

Size: 604 Bytes

Versions: 6

Compression:

Stored size: 604 Bytes

Contents

require 'dragonfly'

# Configure
Dragonfly.app.configure do
  plugin :imagemagick

  protect_from_dos_attacks true
  secret "6bp7s35hsbs51d5lf4mn"

  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

6 entries across 6 versions & 1 rubygems

Version Path
cardboard_cms-0.3.1 config/initializers/dragonfly.rb
cardboard_cms-0.2.2 config/initializers/dragonfly.rb
cardboard_cms-0.2.1 config/initializers/dragonfly.rb
cardboard_cms-0.1.8 config/initializers/dragonfly.rb
cardboard_cms-0.1.6 config/initializers/dragonfly.rb
cardboard_cms-0.1.4 config/initializers/dragonfly.rb