Disable live updates

This commit is contained in:
Sebastian Serth
2020-03-04 11:38:40 +01:00
parent 37cab6a020
commit b2fc57430c
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class RequestForComment < ApplicationRecord
scope :unsolved, -> { where(solved: [false, nil]) }
scope :in_range, -> (from, to) { where(created_at: from..to) }
after_save :trigger_rfc_action_cable
# after_save :trigger_rfc_action_cable
def self.last_per_user(n = 5)
from("(#{row_number_user_sql}) as request_for_comments")

View File

@ -23,7 +23,7 @@ class Submission < ApplicationRecord
validates :cause, inclusion: {in: CAUSES}
validates :exercise_id, presence: true
after_save :trigger_working_times_action_cable
# after_save :trigger_working_times_action_cable
def build_files_hash(files, attribute)