OSDN Git Service

fix form
[pettanr/pettanr.git] / app / models / picture.rb
index 5aeeee3..255d932 100644 (file)
@@ -1,5 +1,5 @@
 #実素材
-class Picture < Pettanr::Content
+class Picture < Peta::Content
   belongs_to :original_picture
   belongs_to :license
   belongs_to :artist
@@ -41,9 +41,9 @@ class Picture < Pettanr::Content
     return true
   end
   
-  def showable? au = nil
+  def showable? operators = nil
     return false unless self.original_picture
-    return true if self.own?(au)
+    return true if self.own?(operators)
     self.enable? and self.head?
   end