Sha256: cd9c9014af70c683c11b70aaf3c6917370261d33b936e20f278f2eccf24abdb4
Contents?: true
Size: 575 Bytes
Versions: 8
Compression:
Stored size: 575 Bytes
Contents
module Journaled::Actor extend ActiveSupport::Concern included do class_attribute :_journaled_actor_method_name, instance_accessor: false, instance_predicate: false before_action do RequestStore.store[:journaled_actor_proc] = self.class._journaled_actor_method_name && -> { send(self.class._journaled_actor_method_name) } end end class_methods do def journaled_actor=(method_name) raise "Must provide a symbol method name" unless method_name.is_a?(Symbol) self._journaled_actor_method_name = method_name end end end
Version data entries
8 entries across 8 versions & 1 rubygems