evemonk / evemonk

Controllers should subclass ApplicationController RB-RL1005
Anti-pattern
Major
6 months ago6 months old
Controllers should subclass ApplicationController.
 1# frozen_string_literal: true
 2
 3module Api
 4  class BaseController < ActionController::Base 5    protect_from_forgery with: :exception, unless: -> { request.format.json? }
 6
 7    before_action :verify_requested_format!