diff --git a/app/models/screenshot.rb b/app/models/screenshot.rb index 7162dab..a97f110 100644 --- a/app/models/screenshot.rb +++ b/app/models/screenshot.rb @@ -30,6 +30,12 @@ class Screenshot < ActiveRecord::Base "Anonymous" end + # Return Debshots 1.x path to allow migration of images into Paperclip filesystem schema + def image_url(size) + "#{Rails.configuration.images_path_prefix}/#{self.package.name[0]}/#{self.package.name}/#{self.id}_#{size}.png" + end + + def status text = '' # Completes the sentence: "This image…"