Method: Pageflow::RevisionsController#depublish_current
- Defined in:
- app/controllers/pageflow/revisions_controller.rb
#depublish_current ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
27 28 29 30 31 32 33 |
# File 'app/controllers/pageflow/revisions_controller.rb', line 27 def depublish_current entry = Entry.find(params[:entry_id]) (:publish, entry) entry.revisions.depublish_all redirect_to(main_app.admin_entry_path(entry)) end |