OSDN Git Service

fix: element edit
[pettanr/pettanr.git] / app / models / picture.rb
index 24bf392..901fd3b 100644 (file)
@@ -6,6 +6,7 @@ class Picture < Peta::Content
   belongs_to :system_picture
   belongs_to :artist
   has_one :resource_picture
+  has_one :resource_picture_pictures
   
   validates :original_picture_id, :presence => true, :numericality => true, :existence => {:both => false}
   validates :revision, :presence => true, :numericality => true