Permalink
Browse files

показывать тело новости, даже если там только картинка

  • Loading branch information...
1 parent 3a46af3 commit 4bf30cf809d8c5d4e5127a890913038ededfa2b2 @lda lda committed May 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/helpers/entry_helper.rb
@@ -42,7 +42,7 @@ def presented_header(entry)
end
def presented_html(entry, attribute)
- if entry.send(attribute).to_s.strip_html.presence
+ if entry.send(attribute).presence
content_tag :div, raw(entry.send(attribute))
else
content_tag :div, empty_message(attribute), :class => :empty

0 comments on commit 4bf30cf

Please sign in to comment.