logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

accountable_concern.rb (219B)


  1. # frozen_string_literal: true
  2. module AccountableConcern
  3. extend ActiveSupport::Concern
  4. def log_action(action, target)
  5. Admin::ActionLog.create(account: current_account, action: action, target: target)
  6. end
  7. end