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

Version Path
dragonfly-0.4.0 lib/dragonfly/rails/images.rb
dragonfly-0.3.8 lib/dragonfly/rails/images.rb
dragonfly-0.3.7 lib/dragonfly/rails/images.rb
dragonfly-0.3.6 lib/dragonfly/rails/images.rb
dragonfly-0.3.5 lib/dragonfly/rails/images.rb
dragonfly-0.3.4 lib/dragonfly/rails/images.rb
dragonfly-0.3.3 lib/dragonfly/rails/images.rb
dragonfly-0.3.2 lib/dragonfly/rails/images.rb
dragonfly-0.3.0 lib/dragonfly/rails/images.rb
dragonfly-0.2.1 lib/dragonfly/rails/images.rb