app/models/spud_media.rb in spud_media-0.9.6 vs app/models/spud_media.rb in spud_media-0.9.7
- old
+ new
@@ -1,9 +1,11 @@
class SpudMedia < ActiveRecord::Base
has_attached_file :attachment,
:storage => Spud::Media.paperclip_storage,
:s3_credentials => Spud::Media.s3_credentials,
+ :s3_host_name => Spud::Media.s3_host_name,
+
:s3_permissions => lambda { |attachment, style|
attachment.instance.is_protected ? 'private' : 'public-read'
},
:path => Spud::Media.paperclip_storage == :s3 ? Spud::Media.storage_path : lambda { |attachment|
attachment.instance.is_protected ? Spud::Media.storage_path_protected : Spud::Media.storage_path