recently active maps
This commit is contained in:
parent
19df96cb77
commit
72724c8da5
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class MainController < ApplicationController
|
||||||
@maps = Map.find_all_by_featured(true).shuffle!
|
@maps = Map.find_all_by_featured(true).shuffle!
|
||||||
@maps = @maps.slice(0,3)
|
@maps = @maps.slice(0,3)
|
||||||
elsif authenticated?
|
elsif authenticated?
|
||||||
@maps = Map.order("updated_at DESC").limit(3)
|
@maps = Map.order("updated_at DESC").where("permission != ?", "private").limit(3)
|
||||||
end
|
end
|
||||||
|
|
||||||
respond_with(@maps, @current)
|
respond_with(@maps, @current)
|
||||||
|
|
Loading…
Reference in a new issue