Module: Ankh::Model::HelperMethods

Extended by:
ActiveSupport::Concern
Defined in:
lib/ankh/model.rb

Instance Method Summary collapse

Instance Method Details

#generate_human_questionObject



17
18
19
20
21
# File 'lib/ankh/model.rb', line 17

def generate_human_question
  question = Ankh::Question.generate
  @human_question = question.question
  self.salted_human_answer = Ankh.encrypt(question.answer)
end