Sha256: 78b677dc6ce82db3090f43b8b8adcb7c342a848fe0bc0d81a72a4b87aa5718bc
Contents?: true
Size: 728 Bytes
Versions: 17
Compression:
Stored size: 728 Bytes
Contents
# frozen_string_literal: true # Copyright (c) 2016 Andy Pike - The MIT license # # This file has been copied from https://github.com/andypike/rectify/blob/master/lib/rectify/command.rb # We have done this so we can decouple Decidim from any Virtus dependency, which is a dead project # Please follow Decidim discussion to understand more https://github.com/decidim/decidim/discussions/7234 module Decidim class EventRecorder attr_reader :events def initialize @events = {} end def method_missing(method_name, *args, &) args = args.first if args.size == 1 @events[method_name] = args end def respond_to_missing?(_method_name, _include_private = false) true end end end
Version data entries
17 entries across 17 versions & 1 rubygems