Sha256: 9d5a92ed57bec874835c232dfb08d2b09709b042db90b23c8da37865d7e2e6b1
Contents?: true
Size: 537 Bytes
Versions: 1
Compression:
Stored size: 537 Bytes
Contents
module Catarse class ExploreController < BaseController def index @title = t('catarse.explore.title') @categories = Category.with_projects.order(:name).all # Just to know if we should present the menu entries, the actual projects are fetched via AJAX @recommended = Project.visible.not_expired.recommended.limit(3) @expiring = Project.visible.expiring.limit(3) @recent = Project.visible.recent.not_expired.limit(3).order('created_at DESC') @successful = Project.visible.successful.limit(3) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
catarse_core-1.0.0.beta | app/controllers/catarse/explore_controller.rb |