# validates :caption, :presence => true
validates :speech_balloon_template_settings, :boost => {:boost_name => :speech_balloon_template}
- def attr_y
+ def y
self.attributes['y']
end
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