Update main_controller.rb

This commit is contained in:
Connor Turland 2016-10-06 23:44:50 -04:00 committed by GitHub
parent eb10d9ad1b
commit 65b1fc8eae

View file

@ -8,7 +8,7 @@ class MainController < ApplicationController
respond_to do |format|
format.html do
if authenticated?
@maps = policy_scope(Map).where.not(name: 'Untitled Map').where.not(permission: 'Private')
@maps = policy_scope(Map).where.not(name: 'Untitled Map').where.not(permission: 'private')
.order(updated_at: :desc).page(1).per(20)
render 'explore/active'
else