Class: AcmeChallengesController

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

Instance Method Summary collapse

Instance Method Details

#showObject


4
5
6
7
8
9
10
# File 'app/controllers/acme_challenges_controller.rb', line 4

def show
  if acme_order
    render plain: acme_order.challenge_file_content, content_type: 'text/plain'
  else
    head :not_found
  end
end