Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove database ID from public JSON URLs #316

Merged
merged 3 commits into from
Jul 3, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Guid instead of slug
  • Loading branch information
manno committed Jun 3, 2018
commit 4bac7d497c04c16e3341e68b6ac4a7d8d159d215
2 changes: 1 addition & 1 deletion app/views/public/shared/_event.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ json.url public_event_url(id: event.guid, format: :json)
json.conference_url public_conference_url(id: event.conference.acronym, format: :json)
json.related(event.metadata['related']) do |id, weight|
json.event_id id
json.event_slug Event.find(id)&.slug
json.event_guid Event.find(id)&.guid
json.weight weight
end