Module: ApiBlocks::Controller

Extended by:
ActiveSupport::Concern
Defined in:
lib/api_blocks/controller.rb

Overview

ApiBlocks::Controller provides a set of default configurations for Ruby on Rails api controllers.

It sets up ‘ApiBlocks::Responder` as a responder, `Pundit` and controller defaults.

Examples:


class Api::V1::ApplicationController < ActionController::API
  include ApiBlocks::Controller

  pundit_scope :api, :v1
end