OSDN Git Service

fix profiler
[pettanr/pettanr.git] / app / models / balloon.rb
index 35f5971..1a42b2e 100644 (file)
@@ -16,7 +16,7 @@ class Balloon < Peta::Element
 #  validates :caption, :presence => true
   validates :speech_balloon_template_settings, :boost => {:boost_name => :speech_balloon_template}
 
-  def attr_y
+  def y
     self.attributes['y']
   end
   
@@ -58,7 +58,7 @@ self.system_picture_id = 1
   def style
     {
       'width' => self.width.to_s + 'px','height' => self.height.to_s + 'px',
-      'top' => self.attr_y.to_s + 'px','left' => self.x.to_s + 'px'
+      'top' => self.y.to_s + 'px','left' => self.x.to_s + 'px'
     }
   end