Class: Belated::AdminController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/belated/admin_controller.rb

Overview

Controller in charge of admin side of Belated.

Instance Method Summary collapse

Instance Method Details

#future_jobsObject



14
15
16
# File 'app/controllers/belated/admin_controller.rb', line 14

def future_jobs
  @belateds = Belated.all_future_jobs
end

#indexObject



8
9
10
11
12
# File 'app/controllers/belated/admin_controller.rb', line 8

def index
  return unless request.post?

  @belated = Belated.find params[:job_id]
end