end
def showable? au = nil
+ return false unless self.original_picture
return true if self.own?(au)
self.enable? and self.head?
end
PictureIO.picture_io.get self.filename, subdir
end
+ def unpublish
+ imager = PettanImager.load(File.open(Rails.root + 'app/assets/images/error.png', 'rb').read)
+ return false unless imager
+ self.store imager
+ end
+
def credit_template
"#{self.classname.tableize}/attributes/credit"
end