Sha256: 59f85e86b30d762b390be2bd350bfae0cef825a7399dee0c75f9b39bf384826b

Contents?: true

Size: 256 Bytes

Versions: 13

Compression:

Stored size: 256 Bytes

Contents

if current_site.valid? && @page.valid?
  json.success true
  json.previewPath preview_page_path(@page, mounted_on: true) # in case the slug of the page changed
else
  json.success false
  json.errors ({ site: current_site.errors, page: @page.errors })
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
locomotivecms-4.2.0.alpha2 app/views/locomotive/page_content/update.json.jbuilder
locomotivecms-4.2.0.alpha1 app/views/locomotive/page_content/update.json.jbuilder
locomotivecms-4.1.1 app/views/locomotive/page_content/update.json.jbuilder
locomotivecms-4.1.0 app/views/locomotive/page_content/update.json.jbuilder
locomotivecms-4.1.0.rc1 app/views/locomotive/page_content/update.json.jbuilder
locomotivecms-4.0.3 app/views/locomotive/page_content/update.json.jbuilder
locomotivecms-4.0.2 app/views/locomotive/page_content/update.json.jbuilder
locomotivecms-4.0.1 app/views/locomotive/page_content/update.json.jbuilder
locomotivecms-4.0.0 app/views/locomotive/page_content/update.json.jbuilder
locomotivecms-4.0.0.rc0 app/views/locomotive/page_content/update.json.jbuilder
locomotivecms-4.0.0.alpha3 app/views/locomotive/page_content/update.json.jbuilder
locomotivecms-4.0.0.alpha2 app/views/locomotive/page_content/update.json.jbuilder
locomotivecms-4.0.0.alpha1 app/views/locomotive/page_content/update.json.jbuilder