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
t#28985:add credit
[pettanr/pettanr.git]
/
app
/
models
/
picture.rb
diff --git
a/app/models/picture.rb
b/app/models/picture.rb
index
ed212f4
..
e5bbda4
100644
(file)
--- a/
app/models/picture.rb
+++ b/
app/models/picture.rb
@@
-103,6
+103,12
@@
class Picture < ActiveRecord::Base
PictureIO.resource_picture_io.get self.filename, subdir
end
+ def self.show pid
+ r = Picture.find(pid)
+# raise ActiveRecord::Forbidden unless c.visible?(au)
+ r
+ end
+
def credit_template
"#{self.classname.tableize}/credit"
end