OSDN Git Service

fix: conflict
authoryasushiito <yas@pen-chan.jp>
Mon, 3 Aug 2015 23:06:00 +0000 (08:06 +0900)
committeryasushiito <yas@pen-chan.jp>
Mon, 3 Aug 2015 23:06:00 +0000 (08:06 +0900)
app/models/picture.rb

index 3417bd9..2371067 100644 (file)
@@ -28,17 +28,15 @@ class Picture < Peta::Content
     find_index.where(artist_id: artist_id)
   end
   
-<<<<<<< HEAD
   scope :find_by_md5, -> (md5) do 
     find_index.where(md5: md5).order(updated_at: :desc)
   end
   
   scope :find_by_md5_without_original_picture, -> (md5, original_picture_id) do 
     self.find_by_md5(md5).where.not(original_picture_id: original_picture_id).order(updated_at: :desc)
-=======
+  
   scope :find_by_original_picture, -> (original_picture_id) do 
     find_index.where(original_picture_id: original_picture_id)
->>>>>>> 87c9866f541c4c7be4c136f2034d2fecbab787a8
   end
   
   def supply_default