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

Version Path
decidim-core-0.27.9 lib/decidim/event_recorder.rb
decidim-core-0.27.8 lib/decidim/event_recorder.rb
decidim-core-0.27.7 lib/decidim/event_recorder.rb
decidim-core-0.27.6 lib/decidim/event_recorder.rb
decidim-core-0.27.5 lib/decidim/event_recorder.rb
decidim-core-0.27.4 lib/decidim/event_recorder.rb
decidim-core-0.27.3 lib/decidim/event_recorder.rb
decidim-core-0.27.2 lib/decidim/event_recorder.rb
decidim-core-0.27.1 lib/decidim/event_recorder.rb
decidim-core-0.27.0 lib/decidim/event_recorder.rb
decidim-core-0.27.0.rc2 lib/decidim/event_recorder.rb
decidim-core-0.27.0.rc1 lib/decidim/event_recorder.rb