mirror of
https://github.com/mastodon/mastodon.git
synced 2026-03-14 22:44:08 +00:00
12 lines
204 B
Ruby
12 lines
204 B
Ruby
# frozen_string_literal: true
|
|
|
|
module AccountableConcern
|
|
extend ActiveSupport::Concern
|
|
|
|
def log_action(action, target)
|
|
current_account
|
|
.action_logs
|
|
.create(action:, target:)
|
|
end
|
|
end
|