[v4.0] Refined Content API

Jamela Black edited this page Aug 3, 2014 · 2 revisions
Clone this wiki locally

Refined Content API

.save now works identically between ActiveRecord and Content Blocks

Previously, calling .save on a block would save a draft copy, rather then updating the record in place. This has been changed. To save a draft, you can do either:

@block.publish_on_save
@block.save
# or
@block.save_draft