Sha256: 50eda327881f824f03fc732fde7b64dff8593aa8de36401513d1c3047b0c6a97

Contents?: true

Size: 240 Bytes

Versions: 16

Compression:

Stored size: 240 Bytes

Contents

module Gaku
  class Assignment < ActiveRecord::Base
    belongs_to :syllabus
    belongs_to :grading_method

    validates :name, presence: true
    validates_associated :syllabus, :grading_method

    def to_s
      name
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

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