Class: Slickr::Page::Draft
- Inherits:
-
Slickr::Page
- Object
- ActiveRecord::Base
- ApplicationRecord
- Slickr::Page
- Slickr::Page::Draft
- Defined in:
- app/models/slickr/page/draft.rb
Constant Summary
Constants inherited from Slickr::Page
Instance Method Summary collapse
Methods inherited from Slickr::Page
#activate_draft, #add_child_path, #additional_page_edit_paths, #admin_delete_page_path, #admin_image_index_path, #admin_page_path, #admin_preview_page_path, #admin_publish_path, #admin_unpublish_path, #change_position_admin_page, #create_content_areas, #create_draft, #display_title, #edit_page_path, #expanded, #preview_page, #published, root_subtree_for_views, #tree_children
Instance Method Details
#activate ⇒ Object
8 9 10 |
# File 'app/models/slickr/page/draft.rb', line 8 def activate slickr_page.update_attribute(:active_draft_id, self.id) end |