Update main_controller.rb (#682)
This commit is contained in:
parent
db3cf0490f
commit
93341719a9
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ class MainController < ApplicationController
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html do
|
format.html do
|
||||||
if !authenticated?
|
if !authenticated?
|
||||||
|
skip_policy_scope
|
||||||
render 'main/home'
|
render 'main/home'
|
||||||
else
|
else
|
||||||
@maps = policy_scope(Map).order(updated_at: :desc).page(1).per(20)
|
@maps = policy_scope(Map).order(updated_at: :desc).page(1).per(20)
|
||||||
|
|
Loading…
Reference in a new issue