Skip to content

Commit

Permalink
Minor doc, switched to main branch of inaturalistjs.
Browse files Browse the repository at this point in the history
  • Loading branch information
kueda committed Dec 2, 2016
1 parent 92223c9 commit c4cea95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/controllers/taxa_controller.rb
Expand Up @@ -914,6 +914,11 @@ def update_photos
end
end

#
# Basically the same as update photos except it just takes a JSON array of
# photo-like objects congtaining the keys id, type, and native_photo_id, and
# sets them as the photos, respecting their position.
#
def set_photos
photos = ( params[:photos] || [] ).map { |photo|
subclass = LocalPhoto
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -13,7 +13,7 @@
"c3": "^0.4.11-rc4",
"gulp": "^3.9.1",
"html-truncate": "^1.2.1",
"inaturalistjs": "inaturalist/inaturalistjs#taxon-page",
"inaturalistjs": "inaturalist/inaturalistjs",
"isomorphic-fetch": "^2.2.1",
"json-loader": "^0.5.4",
"jsx-loader": "^0.13.2",
Expand Down

0 comments on commit c4cea95

Please sign in to comment.