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