app/models/spud_media.rb in spud_media-1.0.0.rc1 vs app/models/spud_media.rb in spud_media-1.0.0.rc1.1
- old
+ new
@@ -38,11 +38,11 @@
def image_from_type
if self.attachment_content_type.blank?
return "spud/admin/files_thumbs/dat_thumb.png"
end
- if self.is_image? || self.is_pdf?
+ if self.is_image?
return self.attachment_url(:small)
elsif self.attachment_content_type.blank?
return "spud/admin/files_thumbs/dat_thumb.png"
@@ -97,10 +97,10 @@
return (crop_x && crop_y && crop_w && crop_h && crop_s)
end
def dynamic_styles
styles = {}
- if is_image? || is_pdf?
+ if is_image?
styles[:small] = '50'
if has_custom_crop?
styles[:cropped] = {:geometry => '', :convert_options => "-resize #{crop_s}% -crop #{crop_w}x#{crop_h}+#{crop_x}+#{crop_y}"}
end
end