Display 6 featured and 6 latest asciicasts on landing page

This commit is contained in:
Marcin Kulik 2014-07-05 19:37:21 +02:00
parent 560e11f24e
commit ba387bbb20

View File

@ -11,11 +11,11 @@ class HomePagePresenter
end
def latest_asciicasts
Asciicast.latest_limited(3).decorate
Asciicast.latest_limited(6).decorate
end
def featured_asciicasts
Asciicast.random_featured_limited(3).decorate
Asciicast.random_featured_limited(6).decorate
end
private