Class: Pageflow::Editor::EntriesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Pageflow::Editor::EntriesController
- Defined in:
- app/controllers/pageflow/editor/entries_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
8 9 10 11 |
# File 'app/controllers/pageflow/editor/entries_controller.rb', line 8 def index @entries = DraftEntry.accessible_by(current_ability, :use_files) respond_with(@entries) end |
#seed ⇒ Object
13 14 15 16 17 18 |
# File 'app/controllers/pageflow/editor/entries_controller.rb', line 13 def seed @entry = DraftEntry.find(params[:id]) (:edit, @entry.to_model) @entry_config = Pageflow.config_for(@entry) end |