Class: Pageflow::Editor::EntriesController Private
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Pageflow::Editor::EntriesController
- Defined in:
- app/controllers/pageflow/editor/entries_controller.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #index ⇒ Object private
- #seed ⇒ Object private
- #show ⇒ Object private
- #update ⇒ Object private
Instance Method Details
#index ⇒ 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.
11 12 13 14 |
# File 'app/controllers/pageflow/editor/entries_controller.rb', line 11 def index @entries = DraftEntry.accessible_by(current_ability, :use_files) respond_with(@entries) end |
#seed ⇒ 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.
16 17 18 19 20 21 |
# File 'app/controllers/pageflow/editor/entries_controller.rb', line 16 def seed @entry = DraftEntry.find(params[:id]) (:edit, @entry.to_model) @entry_config = Pageflow.config_for(@entry) end |
#show ⇒ 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.
23 24 25 26 27 28 29 30 31 32 33 |
# File 'app/controllers/pageflow/editor/entries_controller.rb', line 23 def show @entry = DraftEntry.find(params[:id]) (:edit, @entry.to_model) @entry_config = Pageflow.config_for(@entry) respond_to do |format| format.html format.json end end |
#update ⇒ 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.
35 36 37 38 39 40 41 42 |
# File 'app/controllers/pageflow/editor/entries_controller.rb', line 35 def update @entry = DraftEntry.find(params[:id]) (:update, @entry.to_model) @entry.(entry_params) head(:no_content) end |