Sha256: d1faba1c15d638ad6cd12cbbdffc759a418b0fe7188d972047b1f06785e58f1f

Contents?: true

Size: 220 Bytes

Versions: 1

Compression:

Stored size: 220 Bytes

Contents

# frozen_string_literal: true

json.page do
  json.extract! @page, :id, :title, :path, :content

  json.published_at @page.published_at.strftime("%F %T")
  json.published_at_timestamp @page.published_at.to_time.to_i
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.3.0 app/views/archangel/frontend/pages/show.json.jbuilder