OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix: editor
[pettanr/pettanr.git]
/
app
/
models
/
original_picture.rb
diff --git
a/app/models/original_picture.rb
b/app/models/original_picture.rb
index
759da1d
..
20ec95b
100644
(file)
--- a/
app/models/original_picture.rb
+++ b/
app/models/original_picture.rb
@@
-50,6
+50,10
@@
class OriginalPicture < Peta::Content
self.tmb_opt_img_tag
end
+ def filer_caption
+ self.revision
+ end
+
def revision
head = self.history.first
head ? head.revision : 'unpublished'