lib/juxtapose/application/lib/image.rb in motion-juxtapose-0.1.0 vs lib/juxtapose/application/lib/image.rb in motion-juxtapose-0.1.1
- old
+ new
@@ -5,10 +5,18 @@
self.basedir = basedir
self.img = img
end
def accepted?
- img.match /accepted/
+ File.basename(img).match /accepted/
+ end
+
+ def current?
+ File.basename(img).match /current/
+ end
+
+ def diff?
+ File.basename(img).match /diff/
end
def path
File.join("/images", img)
end