diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2018-03-03 20:00:05 +0100 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2018-03-06 12:53:14 +0100 |
commit | 11a559f7c9ce21b040c3a9c0544169f4885b9fa6 (patch) | |
tree | 8da4be4133d05b0f8cd21f5f6de94423818a626f /app | |
parent | 8a7cd25d08789ee70eaa7de3367f7ad286c49272 (diff) | |
download | gitlab-ce-11a559f7c9ce21b040c3a9c0544169f4885b9fa6.tar.gz |
Singularize model name.
Diffstat (limited to 'app')
-rw-r--r-- | app/models/event.rb | 2 | ||||
-rw-r--r-- | app/models/user_interacted_project.rb (renamed from app/models/user_interacted_projects.rb) | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/event.rb b/app/models/event.rb index 166c3f1b4b1..86a14044bc2 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -395,6 +395,6 @@ class Event < ActiveRecord::Base # 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). - UserInteractedProjects.track(self) if UserInteractedProjects.available? + UserInteractedProject.track(self) if UserInteractedProject.available? end end diff --git a/app/models/user_interacted_projects.rb b/app/models/user_interacted_project.rb index ba6ed2bd2ff..5e7f6d5eeda 100644 --- a/app/models/user_interacted_projects.rb +++ b/app/models/user_interacted_project.rb @@ -1,4 +1,4 @@ -class UserInteractedProjects < ActiveRecord::Base +class UserInteractedProject < ActiveRecord::Base belongs_to :user belongs_to :project |