summaryrefslogtreecommitdiff
path: root/app/models/event.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/event.rb')
-rw-r--r--app/models/event.rb13
1 files changed, 4 insertions, 9 deletions
diff --git a/app/models/event.rb b/app/models/event.rb
index 580bb770599..3cdfaaf6c40 100644
--- a/app/models/event.rb
+++ b/app/models/event.rb
@@ -77,15 +77,6 @@ class Event < ApplicationRecord
scope :recent, -> { reorder(id: :desc) }
scope :code_push, -> { where(action: PUSHED) }
- scope :in_projects, -> (projects) do
- sub_query = projects
- .except(:order)
- .select(1)
- .where('projects.id = events.project_id')
-
- where('EXISTS (?)', sub_query).recent
- end
-
scope :with_associations, -> do
# We're using preload for "push_event_payload" as otherwise the association
# is not always available (depending on the query being built).
@@ -135,6 +126,10 @@ class Event < ApplicationRecord
def target_types
TARGET_TYPES.keys
end
+
+ def has_group_events?
+ false
+ end
end
def present