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