# validates :caption, :presence => true
validates :speech_balloon_template_settings, :boost => {:boost_name => :speech_balloon_template}
+ def _y
+ self.attributes['y']
+ end
+
def url
'/system_pictures/' + self.system_picture.filename
end
def style
{
'width' => self.width.to_s + 'px','height' => self.height.to_s + 'px',
- 'top' => self.y.to_s + 'px','left' => self.x.to_s + 'px'
+ 'top' => self._y.to_s + 'px','left' => self.x.to_s + 'px'
}
end