mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 23:32:53 +00:00
Disable broken activity tracking (#604)
This commit is contained in:
parent
bb48e11343
commit
a7da824537
1 changed files with 5 additions and 6 deletions
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue