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