module Refinery::Videos::Dragonfly
Public Class Methods
attach!(app)
click to toggle source
# File lib/refinery/videos/dragonfly.rb, line 34 def attach!(app) end
configure!()
click to toggle source
# File lib/refinery/videos/dragonfly.rb, line 13 def configure! app_videos = ::Dragonfly.app(:refinery_videos) app_videos.configure do datastore :file, root_path: Refinery::Videos.datastore_root_path, server_root: Refinery::Videos.dragonfly_server_root, secret: Refinery::Videos.dragonfly_secret end if ::Refinery::Videos.s3_backend app_videos.configure do datastore :s3, bucket_name: Refinery::Videos.s3_bucket_name, access_key_id: Refinery::Videos.s3_access_key_id, secret_access_key: Refinery::Videos.s3_secret_access_key, # S3 Region otherwise defaults to 'us-east-1' region: Refinery::Videos.s3_region if Refinery::Videos.s3_region end end end
setup!()
click to toggle source
# File lib/refinery/videos/dragonfly.rb, line 9 def setup! app_videos = ::Dragonfly.app(:refinery_videos) end