Quick correction, to render the correct number of organisations. Refs #71
This commit is contained in:
parent
f02c0b10f2
commit
88ec02e006
@ -16,7 +16,7 @@ class MapsController < ApplicationController
|
||||
|
||||
def show
|
||||
kind = Kind.find_by_name params[:id]
|
||||
orgas = apply_scopes(Orga.moderated.geo).joins(:kind).find_by(kind: kind)
|
||||
orgas = apply_scopes(Orga.moderated.geo).joins(:kind).where(kind: kind)
|
||||
respond_to do |format|
|
||||
format.json { render json: orgas }
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user