Sha256: 4c6b52435659f204dd9842dadcf917a63b8209a9757afeffad27da8c30969157

Contents?: true

Size: 416 Bytes

Versions: 2

Compression:

Stored size: 416 Bytes

Contents

module Answers
  class Api::V1::ApiController < ApplicationController
   #acts_as_token_authentication_handler_for ::User, only: [:create, :update, :destroy]
    prepend_view_path "app/answers/views/api/v1"
    rescue_from ActiveRecord::RecordNotFound, with: :record_not_found
  
    private
  
      def record_not_found
        render json: {message: '404 Not Found', status: 404}, status: 404
      end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
answers-core-0.0.0.2 app/controllers/answers/api/v1/api_controller.rb
answers-core-0.0.0 app/controllers/answers/api/v1/api_controller.rb