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: sync error
[pettanr/pettanr.git]
/
app
/
models
/
original_picture.rb
diff --git
a/app/models/original_picture.rb
b/app/models/original_picture.rb
index
baddcda
..
f4f4058
100644
(file)
--- a/
app/models/original_picture.rb
+++ b/
app/models/original_picture.rb
@@
-64,7
+64,7
@@
class OriginalPicture < Peta::Content
end
def revision
- head = self.
history
.first
+ head = self.
class.find_history(self.id)
.first
head ? head.revision : 'unpublished'
end