Class: Storytime::Dashboard::AutosavesController
- Inherits:
-
Storytime::DashboardController
- Object
- ApplicationController
- Storytime::DashboardController
- Storytime::Dashboard::AutosavesController
- Defined in:
- app/controllers/storytime/dashboard/autosaves_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#authenticate_user!, #current_user, #setup, #user_signed_in?
Methods included from Concerns::CurrentSite
Methods included from Concerns::ControllerContentFor
#content_for, #content_for?, #view_context
Instance Method Details
#create ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/controllers/storytime/dashboard/autosaves_controller.rb', line 12 def create if @post.autosave.nil? || (@post.autosave.content != params[post_type_name.to_sym][:draft_content]) @post.create_autosave(autosave_params) end head :ok end |