app/models/lato_media/media.rb in lato_media-2.1 vs app/models/lato_media/media.rb in lato_media-2.1.2

- old
+ new

@@ -5,16 +5,21 @@ large: "#{CONFIGS[:lato_media][:large_media_width]}x#{CONFIGS[:lato_media][:large_media_width]}>", medium: "#{CONFIGS[:lato_media][:medium_media_width]}x#{CONFIGS[:lato_media][:medium_media_width]}>", thumb: "#{CONFIGS[:lato_media][:thumb_media_width]}x#{CONFIGS[:lato_media][:thumb_media_width]}>" } + IMAGES_PROCESSORS = [:thumbnail, :paperclip_optimizer] + # Dependencies: include Media::EntityHelpers # Other settings: - has_attached_file :attachment, styles: lambda { |a| a.content_type =~ /^image/ ? IMAGES_SIZES : {} } + has_attached_file :attachment, + styles: lambda { |a| a.content_type =~ /^image/ ? IMAGES_SIZES : {} }, + processors: IMAGES_PROCESSORS + do_not_validate_attachment_file_type :attachment # Callbacks: before_save do