diff --git a/lib/delayed_attachment_fu.rb b/lib/delayed_attachment_fu.rb index 0e0ded6..0848f7c 100644 --- a/lib/delayed_attachment_fu.rb +++ b/lib/delayed_attachment_fu.rb @@ -39,14 +39,11 @@ module DelayedAttachmentFu end def public_filename(size=nil) - force = (size == :uploaded) - if force - size = nil - end + force, size = true, nil if size == :uploaded if !self.thumbnailable? || self.thumbnails_processed || force - super(size.to_s) + super size else - size ||= 'thumb' + size ||= :thumb '/images/icons-app/image-loading-%s.png' % size end end -- libgit2 0.21.2