class Humpyard::Assets::PaperclipAsset
Public Instance Methods
content_type()
click to toggle source
# File app/models/humpyard/assets/paperclip_asset.rb 32 def content_type 33 media_content_type 34 end
title()
click to toggle source
# File app/models/humpyard/assets/paperclip_asset.rb 24 def title 25 media_file_name 26 end
update_media_dimensions()
click to toggle source
# File app/models/humpyard/assets/paperclip_asset.rb 36 def update_media_dimensions 37 begin 38 size = Paperclip::Geometry.from_file media.queued_for_write[:original] 39 asset.width = size.width.to_i 40 asset.height = size.height.to_i 41 rescue 42 asset.width = nil 43 asset.height = nil 44 end 45 end
url()
click to toggle source
# File app/models/humpyard/assets/paperclip_asset.rb 28 def url 29 media.url 30 end