diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2018-03-01 15:42:04 +0100 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2018-03-06 12:53:14 +0100 |
commit | 43b74afd8656df8228c19d5e5e6aee9f87abc244 (patch) | |
tree | c1f4a7b09d53af65ed13774e30f2a27be38c8052 /app/models/event.rb | |
parent | 986f470d40a3ed993bb6b2c2115a05c24eb575fa (diff) | |
download | gitlab-ce-43b74afd8656df8228c19d5e5e6aee9f87abc244.tar.gz |
Rename to UserInteractedProjects.
This is to avoid a mix-up with the existing concept of 'user
contributions'. See `User#contributed_projects` or
`Event#contributions`.
Diffstat (limited to 'app/models/event.rb')
-rw-r--r-- | app/models/event.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/event.rb b/app/models/event.rb index e855ed02274..166c3f1b4b1 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -65,7 +65,7 @@ class Event < ActiveRecord::Base # Callbacks after_create :reset_project_activity after_create :set_last_repository_updated_at, if: :push? - after_create :track_user_contributed_projects + after_create :track_user_interacted_projects # Scopes scope :recent, -> { reorder(id: :desc) } @@ -391,10 +391,10 @@ class Event < ActiveRecord::Base .update_all(last_repository_updated_at: created_at) end - def track_user_contributed_projects + def track_user_interacted_projects # Note the call to .available? is due to earlier migrations # that would otherwise conflict with the call to .track # (because the table does not exist yet). - UserContributedProjects.track(self) if UserContributedProjects.available? + UserInteractedProjects.track(self) if UserInteractedProjects.available? end end |