Sha256: fb692094d8a30f8fcf0ad60c622992b062cb2d9403843065bad53e1741c2416b

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 Bytes

Contents

class Belated
  # Controller in charge of admin side of Belated.
  class AdminController < ::ActionController::Base
    if (name = Belated.basic_auth.name) && (pass = Belated.basic_auth.password)
      http_basic_authenticate_with name: name, password: pass
    end

    def index
      return unless request.post?

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

    def future_jobs
      @belateds = Belated.all_future_jobs
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
belated-0.9.0 app/controllers/belated/admin_controller.rb