Sha256: 693390b7871d9e7f4551cfb29dd7a598c159e613cc71c69a24c5e9056c1f4288

Contents?: true

Size: 382 Bytes

Versions: 9

Compression:

Stored size: 382 Bytes

Contents

module Api
  module V1
    class ProjectsController < ApplicationController
      before_filter :api_authenticate!
      skip_before_filter :verify_authenticity_token

      rescue_from ActiveRecord::RecordNotFound do
        head 404
      end

      def index
        @projects = Project.unretired
        render json: ProjectPresenter.new(@projects)
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
houston-core-0.8.0.pre app/controllers/api/v1/projects_controller.rb
houston-core-0.7.0 app/controllers/api/v1/projects_controller.rb
houston-core-0.7.0.beta4 app/controllers/api/v1/projects_controller.rb
houston-core-0.7.0.beta3 app/controllers/api/v1/projects_controller.rb
houston-core-0.7.0.beta2 app/controllers/api/v1/projects_controller.rb
houston-core-0.7.0.beta app/controllers/api/v1/projects_controller.rb
houston-core-0.6.3 app/controllers/api/v1/projects_controller.rb
houston-core-0.6.2 app/controllers/api/v1/projects_controller.rb
houston-core-0.6.1 app/controllers/api/v1/projects_controller.rb