Sha256: a33f15377d58ad8910b053cd38c765d52d10d26ec08fe9d23a408141cb3fa7d3
Contents?: true
Size: 734 Bytes
Versions: 12
Compression:
Stored size: 734 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, &_block) 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
12 entries across 12 versions & 1 rubygems