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 %>