class RcAccountabilityResource < ActiveRecord::Base
  attr_accessible :title, :year
  attr_accessible :document, :instructive_document

  has_many :rc_accountability_citizen_evaluations, dependent: :destroy
  has_many :rc_accountability_spta_evaluations, dependent: :destroy
  has_many :rc_accountability_photos, dependent: :destroy

  accepts_nested_attributes_for :rc_accountability_citizen_evaluations
  accepts_nested_attributes_for :rc_accountability_spta_evaluations

  validates :title, :year, presence: true

  has_attached_file :document
  has_attached_file :instructive_document

end
