Class: Pageflow::Editor::EncodingConfirmationsController Private
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Pageflow::Editor::EncodingConfirmationsController
- Defined in:
- app/controllers/pageflow/editor/encoding_confirmations_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
- #check ⇒ Object private
- #create ⇒ Object private
Instance Method Details
#check ⇒ 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.
21 22 23 24 25 26 |
# File 'app/controllers/pageflow/editor/encoding_confirmations_controller.rb', line 21 def check entry = DraftEntry.find(params[:entry_id]) (:confirm_encoding, entry.to_model) @encoding_confirmation = build_encoding_confirmation(entry) end |
#create ⇒ 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.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/pageflow/editor/encoding_confirmations_controller.rb', line 9 def create entry = DraftEntry.find(params[:entry_id]) (:confirm_encoding, entry.to_model) @encoding_confirmation = build_encoding_confirmation(entry) @encoding_confirmation.save! render(json: {}) rescue EncodingConfirmation::QuotaExceededError render(action: :check, status: :forbidden) end |