Sha256: 22ef3fae1f894ba02815feb809dd334cc7ad2124e1799a29a952f1563710e7a0

Contents?: true

Size: 248 Bytes

Versions: 1

Compression:

Stored size: 248 Bytes

Contents

# frozen_string_literal: true

require "active_support/lazy_load_hooks"
require "action_controller"

ActiveSupport.on_load :action_controller do
  ::ActionController::Base.extend ApiErrorHandler
  ::ActionController::API.extend ApiErrorHandler
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
api_error_handler-0.2.1 lib/api_error_handler/action_controller.rb