Class: LatoStorage::ApplicationController
- Inherits:
-
Lato::ApplicationController
- Object
- Lato::ApplicationController
- LatoStorage::ApplicationController
show all
- Defined in:
- app/controllers/lato_storage/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#cleaner ⇒ Object
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# File 'app/controllers/lato_storage/application_controller.rb', line 24
def cleaner
@operation = Lato::Operation.generate('Lato::ActiveStorageCleanerJob', {}, @session.user_id)
respond_to do |format|
if @operation.start
format.html { redirect_to lato.operation_path(@operation) }
format.json { render json: @operation }
else
format.html { render :index, status: :unprocessable_entity }
format.json { render json: @operation.errors, status: :unprocessable_entity }
end
end
end
|
#index ⇒ Object
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'app/controllers/lato_storage/application_controller.rb', line 8
def index
@data = LatoStorage::PreloadDashboardDataJob.perform_now
end
|