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
temp
[pettanr/pettanr.git]
/
app
/
models
/
original_picture.rb
diff --git
a/app/models/original_picture.rb
b/app/models/original_picture.rb
index
28bf7b6
..
db52744
100644
(file)
--- a/
app/models/original_picture.rb
+++ b/
app/models/original_picture.rb
@@
-52,6
+52,14
@@
class OriginalPicture < ActiveRecord::Base
{:src => self.url, :width => tw, :height => th}
end
+ def symbol_option
+ self.tmb_opt_img_tag
+ end
+
+ def revision
+ self.history.first.revision
+ end
+
def unpublished?
self.published_at == nil and self.stopped_at == nil
end