Sha256: 14baa67743354f0be655ecbc3268f6329d50e6c3b62f3bc8ba369b00efeb89d6
Contents?: true
Size: 429 Bytes
Versions: 9
Compression:
Stored size: 429 Bytes
Contents
module Api module V1 class ProjectsController < ApplicationController before_action :api_authenticate! skip_before_action :verify_authenticity_token skip_around_action :with_current_project 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