OSDN Git Service

t#31715:speech_balloon boost
[pettanr/pettanr.git] / app / views / panels / _body.html.erb
index a25be02..89e4abb 100644 (file)
@@ -1,19 +1,7 @@
 <% panel.panel_elements.each do |elm| %>
   <% case elm.class.to_s %>
   <% when 'SpeechBalloon' %>
-    <% 
-      speech_balloon = elm
-      speech_balloon_template = speech_balloon.speech_balloon_template
-      balloon = speech_balloon.balloon 
-      speech = speech_balloon.speech 
-      speech_balloon.extend speech_balloon_template.engine_speech_balloon_module
-      balloon.extend speech_balloon_template.engine_balloon_module
-      speech.extend speech_balloon_template.engine_speech_module
-      
-      balloon.new_speech_balloon = speech_balloon
-      speech.new_speech_balloon = speech_balloon
-      
-    %>
+    <% elm.boost %>
   <% end %>
 <% end %>
 <div id="<%= panel.tag_id -%>" panel_id="<%= panel.tag_panel_id -%>" class="pettanr-comic-panel" style="width:<%= panel.width %>px;height:<%= panel.height %>px;border-style: solid;border-width: <%= panel.border %>px;border-color:black; background-color:white;">