Sha256: 88ac2d6feb4b4887705921833bfe55c733412d2b7f3e33b1e1119794a927b4d2

Contents?: true

Size: 204 Bytes

Versions: 10

Compression:

Stored size: 204 Bytes

Contents

module Gaku
  class AttendanceType < ActiveRecord::Base

    has_many :attendances

    translates :name

    validates :name, presence: true, uniqueness: true

    def to_s
      name
    end

  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
gaku-0.1.1 core/app/models/gaku/attendance_type.rb
gaku_core-0.1.1 app/models/gaku/attendance_type.rb
gaku-0.1.0 core/app/models/gaku/attendance_type.rb
gaku_core-0.1.0 app/models/gaku/attendance_type.rb
gaku_core-0.0.3 app/models/gaku/attendance_type.rb
gaku-0.0.3 core/app/models/gaku/attendance_type.rb
gaku-0.0.2 core/app/models/gaku/attendance_type.rb
gaku_core-0.0.2 app/models/gaku/attendance_type.rb
gaku-0.0.1 core/app/models/gaku/attendance_type.rb
gaku_core-0.0.1 app/models/gaku/attendance_type.rb