Update main_controller.rb
This commit is contained in:
parent
eb10d9ad1b
commit
65b1fc8eae
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ class MainController < ApplicationController
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html do
|
format.html do
|
||||||
if authenticated?
|
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)
|
.order(updated_at: :desc).page(1).per(20)
|
||||||
render 'explore/active'
|
render 'explore/active'
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue