Sha256: 12876faffd005b559f319ded1509f4c3dcd59907b24aaba7e025bb87ec3bdc1d
Contents?: true
Size: 388 Bytes
Versions: 5
Compression:
Stored size: 388 Bytes
Contents
module Recruiter class ArticlesController < ::RecruiterController respond_to :html, :json def index @articles = scope respond_with(@articles) end def show @article = scope.find(params[:id]) ensure_canonical_url(@article) do respond_with(@article) end end private def scope Article.published end end end
Version data entries
5 entries across 5 versions & 1 rubygems