Update main_controller.rb (#682)

This commit is contained in:
Connor Turland 2016-09-28 20:22:55 -04:00 committed by GitHub
parent db3cf0490f
commit 93341719a9

View file

@ -9,6 +9,7 @@ class MainController < ApplicationController
respond_to do |format|
format.html do
if !authenticated?
skip_policy_scope
render 'main/home'
else
@maps = policy_scope(Map).order(updated_at: :desc).page(1).per(20)