Sha256: fd42a4168aeb0383aebcbd1965d3a3d8ac0d2d508b76a7f339b9787ff20f1c7e
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
require 'active_support/concern' module Grape module DSL module Callbacks extend ActiveSupport::Concern module ClassMethods def before(&block) imbue(:befores, [block]) end def before_validation(&block) imbue(:before_validations, [block]) end def after_validation(&block) imbue(:after_validations, [block]) end def after(&block) imbue(:afters, [block]) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grape-0.9.0 | lib/grape/dsl/callbacks.rb |