public
Last active

  • Download Gist
quickerclip.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
module Paperclip
class Geometry
def self.from_file file
parse("100x100")
end
end
class Thumbnail
def make
src = Test::FileHelper.fixture_file('white_pixel.jpg')
dst = Tempfile.new([@basename, @format].compact.join("."))
dst.binmode
FileUtils.cp(src.path, dst.path)
return dst
end
end
end

Where is Test::FileHelper from?

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.