Sha256: 8b17174bce001ebd6832e970b2568ba92e336fed19aaf138ec36ea6db5fcc730
Contents?: true
Size: 600 Bytes
Versions: 4
Compression:
Stored size: 600 Bytes
Contents
require 'active_support/concern' module Grape module DSL module Callbacks extend ActiveSupport::Concern include Grape::DSL::Configuration module ClassMethods def before(&block) namespace_stackable(:befores, block) end def before_validation(&block) namespace_stackable(:before_validations, block) end def after_validation(&block) namespace_stackable(:after_validations, block) end def after(&block) namespace_stackable(:afters, block) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
grape-0.12.0 | lib/grape/dsl/callbacks.rb |
grape-0.11.0 | lib/grape/dsl/callbacks.rb |
grape-0.10.1 | lib/grape/dsl/callbacks.rb |
grape-0.10.0 | lib/grape/dsl/callbacks.rb |