OSDN Git Service

t#:
[pettanr/pettanr.git] / app / models / ground_color.rb
index 1a757fa..ea59cc4 100644 (file)
@@ -12,8 +12,8 @@ class GroundColor < Pettanr::Content
   validates :z, :presence => true, :numericality => {:greater_than => 0}
   validates :t, :presence => true, :numericality => {:greater_than_or_equal_to => 0}
   
-  def owner_model
-    self.panel
+  def self.owner_model
+    Panel
   end
   
   def self.valid_encode_columns
@@ -144,7 +144,7 @@ class GroundColor < Pettanr::Content
     {:include => {:panel => {:include => {:author => {}}} }}
   end
   
-  def store au
+  def store operators
     if self.new_record?
       self.panel.ground_colors.build(self.attributes)
     else
@@ -156,11 +156,11 @@ class GroundColor < Pettanr::Content
         break
       end
     end
-    self.panel.store({}, au)
+    self.panel.store({}, operators)
   end
   
-  def remove au
-    self.panel.remove_element(self, au)
+  def remove operators
+    self.panel.remove_element(self, operators)
   end
   
   def scenario