Commit 6450a3c2107025c6543b334a736685e3396d515e

Authored by Leandro Santos
1 parent 3b53cb45
Exists in master

avoid html_safe to nil object

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
views/content_viewer/_prompt_body.html.erb
... ... @@ -11,7 +11,7 @@
11 11 <% else %>
12 12 <div class="pairwise_body"><%= pairwise_content.title.html_safe %></div>
13 13 <% end %>
14   - <div class="pairwise_call_for_action"><%= pairwise_content.body.html_safe %></div>
  14 + <div class="pairwise_call_for_action"><%= (pairwise_content.body || '').html_safe %></div>
15 15 <%= render :partial => 'content_viewer/pairwise_prompts', :locals => {:embeded => embeded, :pairwise_content => pairwise_content, :question => question, :source => (defined?(source) ? source : '') } %>
16 16 <% if embeded %>
17 17 <div class="footer"><%= _('Powered by') + ' ' + pairwise_content.environment.name%></div>
... ...