Sha256: 33497605e1fba34d9a815b386a30e08d2ec518e8ebc02a764029d4a94736650e

Contents?: true

Size: 364 Bytes

Versions: 25

Compression:

Stored size: 364 Bytes

Contents

json.array!(@events) do |event|
  json.extract! event, :id
  json.title event.display_name.localize
  if event.all_day
    json.start event.start_at.iso8601
    json.end event.end_at.tomorrow.beginning_of_day.iso8601
    json.allDay event.all_day
  else
    json.start event.start_at.iso8601
    json.end event.end_at.iso8601
  end
  json.url event_url(event)
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
enju_event-0.3.5 app/views/events/index.json.jbuilder
enju_event-0.3.4 app/views/events/index.json.jbuilder
enju_event-0.3.3 app/views/events/index.json.jbuilder
enju_event-0.3.2 app/views/events/index.json.jbuilder
enju_event-0.3.1 app/views/events/index.json.jbuilder
enju_event-0.3.0 app/views/events/index.json.jbuilder
enju_event-0.3.0.rc.1 app/views/events/index.json.jbuilder
enju_event-0.3.0.beta.1 app/views/events/index.json.jbuilder
enju_event-0.2.3 app/views/events/index.json.jbuilder
enju_event-0.2.2 app/views/events/index.json.jbuilder
enju_event-0.2.1 app/views/events/index.json.jbuilder
enju_event-0.2.0 app/views/events/index.json.jbuilder
enju_event-0.2.0.beta.4 app/views/events/index.json.jbuilder
enju_event-0.2.0.beta.3 app/views/events/index.json.jbuilder
enju_event-0.2.0.beta.2 app/views/events/index.json.jbuilder
enju_event-0.2.0.beta.1 app/views/events/index.json.jbuilder
enju_event-0.1.19 app/views/events/index.json.jbuilder
enju_event-0.1.18 app/views/events/index.json.jbuilder
enju_event-0.1.17 app/views/events/index.json.jbuilder
enju_event-0.1.17.pre27 app/views/events/index.json.jbuilder