app/models/spud_media.rb in spud_media-0.4.0 vs app/models/spud_media.rb in spud_media-0.4.1
- old
+ new
@@ -1,9 +1,10 @@
class SpudMedia < ActiveRecord::Base
has_attached_file :attachment,
:storage => Spud::Media.paperclip_storage,
:s3_credentials => Spud::Media.s3_credentials,
- :path => ":class/:id/attachment/:basename.:extension"
+ :path => Spud::Media.storage_path,
+ :url => Spud::Media.storage_url
def image_from_type
if self.attachment_content_type.blank?
return "spud/admin/files_thumbs/dat_thumb.png"
end