one line the loop, thanks for the hint @MrSerth
This commit is contained in:
@ -46,11 +46,7 @@ class RequestForComment < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def commenters
|
def commenters
|
||||||
commenters = []
|
comments.map(&:user).uniq
|
||||||
comments.each {|comment|
|
|
||||||
commenters.append comment.user
|
|
||||||
}
|
|
||||||
commenters.uniq
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.with_last_activity
|
def self.with_last_activity
|
||||||
|
Reference in New Issue
Block a user