Class: PageStatusController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- PageStatusController
- Defined in:
- app/controllers/page_status_controller.rb
Instance Attribute Summary
Attributes inherited from ApplicationController
#cache, #pagination_parameters, #trusty_config
Instance Method Summary collapse
Methods inherited from ApplicationController
#after_sign_in_path_for, #initialize, #template_name
Methods included from LoginSystem
Constructor Details
This class inherits a constructor from ApplicationController
Instance Method Details
#refresh ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/controllers/page_status_controller.rb', line 6 def refresh pages = Page.where(status_id: Status[:scheduled].id) updated_pages, remaining_pages = process_pages(pages) render json: refresh_response(updated_pages, remaining_pages), status: :ok end |