Sha256: fe8fd9238532aab0d48b55ae674b36f167cbdb5f28daec52fd1d90ce21d1e014

Contents?: true

Size: 616 Bytes

Versions: 26

Compression:

Stored size: 616 Bytes

Contents

require 'dragonfly'

# Configure
Dragonfly.app.configure do
  plugin :imagemagick

  secret "9bed83ddef73251c1dbcb247207ba7840ab8f96cba1e4ccb3a353a3bd6e74d98"

  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

26 entries across 26 versions & 1 rubygems

Version Path
simple_form_attachments-1.2.0 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-1.1.1 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-1.1.0 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-1.0.1 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-1.0.0 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-0.2.6 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-0.2.5 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-0.2.4 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-0.2.3 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-0.2.2 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-0.2.1 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-0.2.0 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-0.1.5 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-0.1.4 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-0.1.3 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-0.1.2 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-0.1.1 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-0.1.0 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-0.0.9 test/dummy/config/initializers/dragonfly.rb
simple_form_attachments-0.0.8 test/dummy/config/initializers/dragonfly.rb