added missing closing bracket

This commit is contained in:
Ralf Teusner
2018-03-28 15:08:34 +02:00
parent b314bab1e1
commit ecd1f31eed

View File

@ -8,7 +8,7 @@ class RequestForComment < ActiveRecord::Base
has_many :subscriptions has_many :subscriptions
scope :unsolved, -> { where(solved: [false, nil]) } scope :unsolved, -> { where(solved: [false, nil]) }
scope :not_stale, -> { where("user_id%10 < 3").where(exercise.exercise_collections.none{|ec| ec.id = 3} } scope :not_stale, -> { where("user_id%10 < 3").where(exercise.exercise_collections.none{|ec| ec.id = 3}) }
def self.last_per_user(n = 5) def self.last_per_user(n = 5)
from("(#{row_number_user_sql}) as request_for_comments") from("(#{row_number_user_sql}) as request_for_comments")