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

Version Path
recruiter-1.1.12 app/controllers/recruiter/articles_controller.rb
recruiter-1.1.11 app/controllers/recruiter/articles_controller.rb
recruiter-1.1.10 app/controllers/recruiter/articles_controller.rb
recruiter-1.1.9 app/controllers/recruiter/articles_controller.rb
recruiter-1.1.8 app/controllers/recruiter/articles_controller.rb
recruiter-1.1.7 app/controllers/recruiter/articles_controller.rb
recruiter-1.1.6 app/controllers/recruiter/articles_controller.rb
recruiter-1.1.5 app/controllers/recruiter/articles_controller.rb
recruiter-1.1.4 app/controllers/recruiter/articles_controller.rb
recruiter-1.1.3 app/controllers/recruiter/articles_controller.rb
recruiter-1.1.2 app/controllers/recruiter/articles_controller.rb
recruiter-1.1.1 app/controllers/recruiter/articles_controller.rb
recruiter-1.1.0 app/controllers/recruiter/articles_controller.rb
recruiter-1.0.0 app/controllers/recruiter/articles_controller.rb
recruiter-0.1.5 app/controllers/recruiter/articles_controller.rb
recruiter-0.1.4 app/controllers/recruiter/articles_controller.rb
recruiter-0.1.3 app/controllers/recruiter/articles_controller.rb
recruiter-0.1.2 app/controllers/recruiter/articles_controller.rb
recruiter-0.1.1 app/controllers/recruiter/articles_controller.rb
recruiter-0.1.0 app/controllers/recruiter/articles_controller.rb