Sha256: 6e7a4645977f80cd9fd1518c04bcdd73a53bfc99ba502d2790d56cea3b5f5520
Contents?: true
Size: 301 Bytes
Versions: 1
Compression:
Stored size: 301 Bytes
Contents
module Rapidfire class Attempt < ActiveRecord::Base belongs_to :survey has_many :answers, inverse_of: :attempt, autosave: true if Rails::VERSION::MAJOR >= 5 belongs_to :user, polymorphic: true, optional: true else belongs_to :user, polymorphic: true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rapidfire-4.0.0 | app/models/rapidfire/attempt.rb |