app/views/archangel/frontend/pages/show.json.jbuilder in archangel-0.3.0 vs app/views/archangel/frontend/pages/show.json.jbuilder in archangel-0.4.0
- old
+ new
@@ -1,8 +1,9 @@
# frozen_string_literal: true
json.page do
- json.extract! @page, :id, :title, :path, :content
+ json.extract! @page, :id, :title, :homepage, :content
- json.published_at @page.published_at.strftime("%F %T")
- json.published_at_timestamp @page.published_at.to_time.to_i
+ json.permalink frontend_resource_path(@page)
+
+ json.published_at @page.published_at
end