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: fetch fail
[pettanr/pettanr.git]
/
app
/
models
/
resource_picture.rb
diff --git
a/app/models/resource_picture.rb
b/app/models/resource_picture.rb
index
521a071
..
42c8eb6
100644
(file)
--- a/
app/models/resource_picture.rb
+++ b/
app/models/resource_picture.rb
@@
-48,6
+48,10
@@
class ResourcePicture < Peta::Content
find_index.where(artist_id: artist_id)
end
+ scope :find_by_md5, -> (md5) do
+ find_index.where(md5: md5)
+ end
+
def self.pickup_item_name
Picture.item_name
end