class InstitutionCalendar < ActiveRecord::Base
  # Accessibles
  attr_accessible :institution_id, :name, :year

  # Associations
  belongs_to :institution
  has_many :calendar_events, dependent: :destroy

  # Valitadions
  validates :name, presence: true

  # Delegates
  delegate :name, to: :institution, prefix: true, allow_nil: true
end
