Class: AcmeChallengesController

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

Overview

rubocop:disable Rails/ApplicationController

Instance Method Summary collapse

Instance Method Details

#showObject



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

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