Sha256: 367c1d672bc21d314bef64485abe75d26675e533a9456b15dbd4e36123b8e0f8
Contents?: true
Size: 279 Bytes
Versions: 26
Compression:
Stored size: 279 Bytes
Contents
module Gaku class Campus < ActiveRecord::Base include Contacts, Picture belongs_to :school has_one :address, as: :addressable validates :name, :school, presence: true scope :master, -> { where(master: true) } def to_s name end end end
Version data entries
26 entries across 26 versions & 2 rubygems