Commit e156d9fc13be44c05953fb5324c68e4b35913383

Authored by Leandro Santos
1 parent 585fee1b

Avoid raise if body is nil

app/views/content_viewer/blog_page.html.erb
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 4
5 <div> 5 <div>
6 <div class='blog-description'> 6 <div class='blog-description'>
7 - <%= blog.body.html_safe %> 7 + <%= (blog.body || '').html_safe %>
8 </div> 8 </div>
9 </div> 9 </div>
10 <hr class="pre-posts"/> 10 <hr class="pre-posts"/>
@@ -289,8 +289,11 @@ ActiveRecord::Schema.define(version: 20160422163123) do @@ -289,8 +289,11 @@ ActiveRecord::Schema.define(version: 20160422163123) do
289 t.string "user_agent" 289 t.string "user_agent"
290 t.string "referrer" 290 t.string "referrer"
291 t.text "settings" 291 t.text "settings"
  292 + t.integer "paragraph_id"
  293 + t.string "paragraph_uuid"
292 end 294 end
293 295
  296 + add_index "comments", ["paragraph_uuid"], name: "index_comments_on_paragraph_uuid", using: :btree
294 add_index "comments", ["source_id", "spam"], name: "index_comments_on_source_id_and_spam", using: :btree 297 add_index "comments", ["source_id", "spam"], name: "index_comments_on_source_id_and_spam", using: :btree
295 298
296 create_table "contact_lists", force: :cascade do |t| 299 create_table "contact_lists", force: :cascade do |t|