pundit: syntax error

This commit is contained in:
Connor Turland 2016-03-12 10:06:00 +11:00
parent 2d53922f1c
commit 5f3f5212c5

View file

@ -24,7 +24,7 @@ class TopicsController < ApplicationController
respond_to do |format| respond_to do |format|
format.html { format.html {
@alltopics = ([@topic] + policy_scope(@topic.relatives) @alltopics = ([@topic] + policy_scope(@topic.relatives))
@allsynapses = policy_scope(@topic.synapses) @allsynapses = policy_scope(@topic.synapses)
@allcreators = @alltopics.map(&:user).uniq @allcreators = @alltopics.map(&:user).uniq