[Git][noosfero/noosfero][master] Avoid raise if body is nil
Leandro Nunes
gitlab at mg.gitlab.com
Wed May 18 12:54:44 BRT 2016
Leandro Nunes pushed to branch master at Noosfero / noosfero
Commits:
e156d9fc by Leandro Nunes dos Santos at 2016-05-18T12:54:15-03:00
Avoid raise if body is nil
- - - - -
2 changed files:
- app/views/content_viewer/blog_page.html.erb
- db/schema.rb
Changes:
=====================================
app/views/content_viewer/blog_page.html.erb
=====================================
--- a/app/views/content_viewer/blog_page.html.erb
+++ b/app/views/content_viewer/blog_page.html.erb
@@ -4,7 +4,7 @@
<div>
<div class='blog-description'>
- <%= blog.body.html_safe %>
+ <%= (blog.body || '').html_safe %>
</div>
</div>
<hr class="pre-posts"/>
=====================================
db/schema.rb
=====================================
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -289,8 +289,11 @@ ActiveRecord::Schema.define(version: 20160422163123) do
t.string "user_agent"
t.string "referrer"
t.text "settings"
+ t.integer "paragraph_id"
+ t.string "paragraph_uuid"
end
+ add_index "comments", ["paragraph_uuid"], name: "index_comments_on_paragraph_uuid", using: :btree
add_index "comments", ["source_id", "spam"], name: "index_comments_on_source_id_and_spam", using: :btree
create_table "contact_lists", force: :cascade do |t|
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/e156d9fc13be44c05953fb5324c68e4b35913383
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160518/e0064e74/attachment-0001.html>
More information about the Noosfero-dev
mailing list