Class: AcmePlugin::DatabaseStore

Inherits:
ChallengeStore show all
Defined in:
lib/acme_plugin/database_store.rb

Instance Method Summary collapse

Methods inherited from ChallengeStore

#initialize, #store

Constructor Details

This class inherits a constructor from AcmePlugin::ChallengeStore

Instance Method Details

#store_contentObject



5
6
7
8
9
# File 'lib/acme_plugin/database_store.rb', line 5

def store_content
  ch = AcmePlugin::Challenge.first
  ch = AcmePlugin::Challenge.new if ch.nil?
  ch.update(response: @content)
end