app/models/events/ec_srg.rb
# == Schema Information
#
# Table name: events
#
# id :integer not null, primary key
# name :string(255)
# designation_id :integer
# description :text
# url :text
# is_current :boolean default(FALSE), not null
# type :string(255) default("Event"), not null
# effective_at :datetime
# published_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
# legacy_id :integer
# end_date :datetime
# subtype :string(255)
# updated_by_id :integer
# created_by_id :integer
# extended_description :text
# multilingual_url :text
# elib_legacy_id :integer
#
# European Commission Scientific Review Group
class EcSrg < Event
# Migrated to controller (Strong Parameters)
# attr_accessible :is_current
has_many :eu_opinions, :foreign_key => :start_event_id,
:dependent => :nullify
validates :effective_at, :presence => true
def self.elibrary_document_types
[
Document::MeetingAgenda,
Document::ShortSummaryOfConclusions,
Document::AgendaItems,
Document::DetailedSummaryOfConclusions,
Document::RangeStateConsultationLetter,
Document::ListOfParticipants
]
end
end