Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F2564633
jobs_controller.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jun 10, 12:51 PM
Size
441 B
Mime Type
text/x-ruby
Expires
Fri, Jun 12, 12:51 PM (2 h, 46 m)
Engine
blob
Format
Raw Data
Handle
398488
Attached To
rWEBDNS WebDNS (edet4)
jobs_controller.rb
View Options
module
Admin
class
JobsController
<
ApplicationController
before_action
:authenticate_user!
before_action
:admin_only!
# GET /jobs
def
index
@pending
=
Job
.
pending
@completed
=
Job
.
completed
.
order
(
'id desc'
)
end
# DELETE /jobs/1
def
destroy
@job
=
Job
.
find
(
params
[
:id
]
)
@job
.
destroy
redirect_to
admin_jobs_url
,
notice
:
"
#{
@job
.
id
}
was successfully destroyed."
end
end
end
Event Timeline
Log In to Comment