X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fmodels%2Fground_picture.rb;h=23b6bbc3291e7b0255d786b798629a0bbb441b03;hb=592aa19184c67289e0a9d11143f50e7b90f2c3cb;hp=a19b50cf8c9ea780e816583f9cf864129f82574c;hpb=9594df49579d3b1eb86c41ea2d38b1fa0b63ec6a;p=pettanr%2Fpettanr.git diff --git a/app/models/ground_picture.rb b/app/models/ground_picture.rb index a19b50cf..23b6bbc3 100644 --- a/app/models/ground_picture.rb +++ b/app/models/ground_picture.rb @@ -31,7 +31,8 @@ class GroundPicture < ActiveRecord::Base end end - def overwrite + def overwrite pid + self.panel_id = pid end def visible? roles