mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
Disable broken activity tracking (#604)
This commit is contained in:
@@ -2,12 +2,11 @@ class PhysicalMail < ApplicationRecord
|
||||
belongs_to :user
|
||||
|
||||
include PublicActivity::Model
|
||||
tracked only: [ :create, :update ], owner: :user, params: proc { |controller, model|
|
||||
{
|
||||
mission_type: model.mission_type,
|
||||
humanized_mission_type: model.humanized_mission_type
|
||||
}
|
||||
}
|
||||
|
||||
# tracked only: [ :update ], owner: :user, params: {
|
||||
# mission_type: ->(controller, model) { model.mission_type },
|
||||
# humanized_mission_type: ->(controller, model) { model.humanized_mission_type }
|
||||
# }
|
||||
|
||||
after_create :create_streak_activity, if: :first_time_7_streak?
|
||||
after_update :create_sent_activity, if: :became_sent?
|
||||
|
||||
Reference in New Issue
Block a user