Sha256: 18489700686568eccba2b3f8542ba6899f8ad35de24fc214bf0436812d21e0b7
Contents?: true
Size: 415 Bytes
Versions: 1
Compression:
Stored size: 415 Bytes
Contents
# frozen_string_literal: true module ActiveFunction module Functions module Callbacks ActiveFunction.register_plugin :callbacks, self def self.included(base) base.include ActiveFunctionCore::Plugins::Hooks base.define_hooks_for :process, name: :action base.set_callback_options only: ->(args, context:) { args.to_set === context.action_name } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activefunction-0.4.0 | lib/active_function/functions/callbacks.rb |