Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fetch_watcher_user_ids
- (self.watcher_user_ids || []) | (AtribuicaoAutomatica.find_by_issue(self)
- .where(redistribute: :watcher)
- .map(&:group)
- .map(&:users)
- .map{|us| us.select{|u| u.active?}}
- .map { |us| us.map(&:id) }.inject(&:concat) || [])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement