Sha256: ecfc2a668a502a5eaffb7d35f6afb46eb4edef382fd948214320e790e243d361

Contents?: true

Size: 298 Bytes

Versions: 2

Compression:

Stored size: 298 Bytes

Contents

require "active_support/concern"

module Transcript
  module Controller
    extend ActiveSupport::Concern

    def audit_action(actor, receiver, action = action_name)
      Transcript::Job.send(
        Transcript.configuration.job_method,
        actor, receiver, action
      )
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
transcript-0.2.1 lib/transcript/controller.rb
transcript-0.2.0 lib/transcript/controller.rb