From 6f8ab1727f3935acd7f87ae620138454feb691ee Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 28 Sep 2016 20:22:23 -0400 Subject: [PATCH] Update main_controller.rb --- app/controllers/main_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb index d655ea91..0ea9ba97 100644 --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -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)