Sha256: 1243e6d95ef9154cdb4c9a5fd0211ebe239d0d5d3cad978ea2ea3c4da8ceda48
Contents?: true
Size: 405 Bytes
Versions: 1
Compression:
Stored size: 405 Bytes
Contents
module Rapidfire class Answer < ActiveRecord::Base belongs_to :question belongs_to :answer_group, inverse_of: :answers validates :question, :answer_group, presence: true validate :verify_answer_text, :if => "question.present?" attr_accessible :question_id, :answer_group, :answer_text private def verify_answer_text question.validate_answer(self) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rapidfire-1.0.0 | app/models/rapidfire/answer.rb |