Added submission_time and decision_time to all json

This commit is contained in:
echarp 2018-03-18 15:01:19 +01:00
parent c5b9ee5bbc
commit ec8d9596e5
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
json.array!(@events) do |event|
json.extract! event, :id, :title, :description, :start_time, :end_time,
:submission_time, :decision_time,
:place_name, :address, :city, :region_id, :locality, :url,
:contact, :tags
json.url event_url(event, format: :json)

View File

@ -1,3 +1,4 @@
json.extract! @event, :id, :title, :description, :start_time, :end_time,
:submission_time, :decision_time,
:place_name, :address, :city, :region, :locality, :url, :contact,
:tag_list