Use where instead of find to prevent 404
This commit is contained in:
parent
6759130cb3
commit
b9c85c2697
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ module Api
|
|||
|
||||
raise OSM::APIBadUserInput, "No users were given to search for" if ids.empty?
|
||||
|
||||
@users = User.visible.find(ids)
|
||||
@users = User.visible.where(:id => ids)
|
||||
|
||||
# Render the result
|
||||
respond_to do |format|
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
xml.instruct! :xml, :version => "1.0"
|
||||
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
|
||||
osm << render(@users)
|
||||
osm << (render(@users) || "")
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue