Sha256: 910d927a659b1f50197c1709ec00e102b52e1cf07bcbbc9001d7626ae75860eb

Contents?: true

Size: 271 Bytes

Versions: 7

Compression:

Stored size: 271 Bytes

Contents

# frozen_string_literal: true

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
archangel-0.0.8 app/views/archangel/frontend/pages/show.json.jbuilder
archangel-0.0.7 app/views/archangel/frontend/pages/show.json.jbuilder
archangel-0.0.6 app/views/archangel/frontend/pages/show.json.jbuilder
archangel-0.0.5 app/views/archangel/frontend/pages/show.json.jbuilder
archangel-0.0.4 app/views/archangel/frontend/pages/show.json.jbuilder
archangel-0.0.3 app/views/archangel/frontend/pages/show.json.jbuilder
archangel-0.0.2 app/views/archangel/frontend/pages/show.json.jbuilder