Sha256: 072408c100d4f214a7de81e76480f7a607d5afa897ad595bfffecdee9a1d0356

Contents?: true

Size: 639 Bytes

Versions: 60

Compression:

Stored size: 639 Bytes

Contents

require 'dragonfly'
#require 'noodall/video_thumbnail_encoder'

module Noodall
  class DragonflyDataStorage < Dragonfly::DataStorage::MongoDataStore
    def db
      MongoMapper.database
    end
  end
end

# Configuration for processing and encoding
app = Dragonfly::App[:noodall_assets]
app.configure_with(:rmagick)
app.configure_with(:rails)
#app.encoder.register(VideoThumbnailEncoder)
app.configure do |c|
  c.datastore = Noodall::DragonflyDataStorage.new
  c.secret = '2406b0d72aaf812659babdf53eb49d4812c2cc59' unless Rails.env.test?
end
app.url_suffix = proc{|job|
  "/#{job.uid_basename}#{job.encoded_extname || job.uid_extname}"
}

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
noodall-ui-0.3.20 lib/noodall/dragonfly.rb
noodall-ui-0.3.19 lib/noodall/dragonfly.rb
noodall-ui-0.3.17 lib/noodall/dragonfly.rb
noodall-ui-0.3.16 lib/noodall/dragonfly.rb
noodall-ui-0.3.15 lib/noodall/dragonfly.rb
noodall-ui-0.3.14 lib/noodall/dragonfly.rb
noodall-ui-0.3.13 lib/noodall/dragonfly.rb
noodall-ui-0.3.12 lib/noodall/dragonfly.rb
noodall-ui-0.3.11 lib/noodall/dragonfly.rb
noodall-ui-0.3.8 lib/noodall/dragonfly.rb
noodall-ui-0.3.7 lib/noodall/dragonfly.rb
noodall-ui-0.3.6 lib/noodall/dragonfly.rb
noodall-ui-0.3.5 lib/noodall/dragonfly.rb
noodall-ui-0.3.4 lib/noodall/dragonfly.rb
noodall-ui-0.3.3 lib/noodall/dragonfly.rb
noodall-ui-0.3.2 lib/noodall/dragonfly.rb
noodall-ui-0.3.1 lib/noodall/dragonfly.rb
noodall-ui-0.3.0 lib/noodall/dragonfly.rb
noodall-ui-0.2.3 lib/noodall/dragonfly.rb
noodall-ui-0.2.2 lib/noodall/dragonfly.rb