This commit is contained in:
Devin Howard 2016-02-09 11:26:42 +08:00
parent 7956e6d289
commit 005250f330

View file

@ -13,7 +13,7 @@ class MapsController < ApplicationController
@current = current_user
@maps = []
page = params[:page].present ? params[:page] : 1
page = params[:page].present? ? params[:page] : 1
if request.path.index("/explore/active") != nil
@maps = Map.where("maps.permission != ?", "private").order("updated_at DESC").page(page).per(20)