Module: Grape::DSL::Callbacks

Extended by:
ActiveSupport::Concern
Includes:
Configuration
Included in:
API
Defined in:
lib/grape/dsl/callbacks.rb

Overview

Blocks can be executed before or after every API call, using before, after, before_validation and after_validation.

Before and after callbacks execute in the following order:

  1. before

  2. before_validation

  3. validations

  4. after_validation

  5. _the API call_

  6. after

Steps 4, 5 and 6 only happen if validation succeeds.

Defined Under Namespace

Modules: ClassMethods