From c85204bf6aef81f1f8256e41ce3f7f78e269e792 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Mon, 2 Apr 2012 19:02:29 +0200 Subject: [PATCH] Remove random descriptions --- app/helpers/asciicasts_helper.rb | 4 ---- app/views/asciicasts/_asciicast.html.erb | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/helpers/asciicasts_helper.rb b/app/helpers/asciicasts_helper.rb index 830c5d3..4e0fdd8 100644 --- a/app/helpers/asciicasts_helper.rb +++ b/app/helpers/asciicasts_helper.rb @@ -54,8 +54,4 @@ module AsciicastsHelper EOS end - - def random_description - Faker::Lorem.sentences(6).join("\n\n") - end end diff --git a/app/views/asciicasts/_asciicast.html.erb b/app/views/asciicasts/_asciicast.html.erb index 0e7cf49..4d830be 100644 --- a/app/views/asciicasts/_asciicast.html.erb +++ b/app/views/asciicasts/_asciicast.html.erb @@ -7,7 +7,7 @@ <% unless (defined? skip_description) && skip_description %>
<% markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML) %> - <%= markdown.render(asciicast.description || random_description).html_safe %> + <%= markdown.render(asciicast.description.to_s).html_safe %>
<% end %>