Sha256: 6a24ca9131f49a8e6fc3e26b39d41a5cb63bb1d0a2bda7e152bf94a311f86c9b

Contents?: true

Size: 207 Bytes

Versions: 16

Compression:

Stored size: 207 Bytes

Contents

module Gaku
  class AssignmentScore < ActiveRecord::Base
    belongs_to :student

    validates :score, :student, presence: true
    validates_associated :student

    def to_s
      score
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
gaku_core-0.3.0 app/models/gaku/assignment_score.rb
gaku_core-0.3.0.pre.4 app/models/gaku/assignment_score.rb
gaku_core-0.3.0.pre.3 app/models/gaku/assignment_score.rb
gaku_core-0.3.0.pre.2 app/models/gaku/assignment_score.rb
gaku_core-0.3.0.pre.1 app/models/gaku/assignment_score.rb
gaku_core-0.3.0.pre.0 app/models/gaku/assignment_score.rb
gaku-0.2.4 core/app/models/gaku/assignment_score.rb
gaku_core-0.2.4 app/models/gaku/assignment_score.rb
gaku-0.2.3 core/app/models/gaku/assignment_score.rb
gaku_core-0.2.3 app/models/gaku/assignment_score.rb
gaku-0.2.2 core/app/models/gaku/assignment_score.rb
gaku_core-0.2.2 app/models/gaku/assignment_score.rb
gaku-0.2.1 core/app/models/gaku/assignment_score.rb
gaku_core-0.2.1 app/models/gaku/assignment_score.rb
gaku-0.2.0 core/app/models/gaku/assignment_score.rb
gaku_core-0.2.0 app/models/gaku/assignment_score.rb