Sha256: 9aa80d52521101e7260f729dee99965cf6b6fd398f60447b41d8b6b2ec462860
Contents?: true
Size: 546 Bytes
Versions: 10
Compression:
Stored size: 546 Bytes
Contents
require 'dragonfly' ### The dragonfly app ### app = Dragonfly::App[:images] app.configure_with(Dragonfly::RMagickConfiguration) app.configure do |c| c.log = RAILS_DEFAULT_LOGGER c.datastore.configure do |d| d.root_path = "#{Rails.root}/public/system/dragonfly/#{Rails.env}" end c.url_handler.configure do |u| u.protect_from_dos_attacks = false u.path_prefix = '/media' end end ### Extend active record ### ActiveRecord::Base.extend Dragonfly::ActiveRecordExtensions ActiveRecord::Base.register_dragonfly_app(:image, app)
Version data entries
10 entries across 10 versions & 1 rubygems