OSDN Git Service

t#:
[pettanr/pettanr.git] / app / models / balloon.rb
index b36a825..b6a4bbb 100644 (file)
@@ -1,6 +1,5 @@
 class Balloon < Peta::Content
   load_manifest
-  include Peta::ElementPart
   belongs_to :speech_balloon
   belongs_to :system_picture
   
@@ -14,14 +13,6 @@ class Balloon < Peta::Content
 #  validates :caption, :presence => true
   validates :settings, :extend_balloon => true
 
-  def self.colum_structures
-    @@colum_structures ||= {
-      :r => {
-        :helper => 'panels/tail_angle_helper'
-      }
-    }
-  end
-  
   def url
     '/system_pictures/' + self.system_picture.filename
   end
@@ -41,15 +32,7 @@ self.system_picture_id = 1
   end
   
   def symbol_option
-    self.get_parent.speech_balloon_template.symbol_option
-  end
-  
-  def get_parent
-    self.speech_balloon || @new_parent
-  end
-  
-  def tag_element_part_type
-    'balloon'
+    self.speech_balloon.speech_balloon_template.symbol_option
   end
   
   def self.list_where