osem-fcy/app/models/survey_submission.rb

8 lines
180 B
Ruby
Raw Normal View History

2016-06-30 17:28:07 +02:00
class SurveySubmission < ActiveRecord::Base
belongs_to :user
belongs_to :survey
has_many :survey_replies, through: :user
accepts_nested_attributes_for :survey_replies
end