module RailsConnector # The CMS news object # # This class models the join table between channels and objects. # Instances of this class also hold information about validity range. class News < CmsBaseModel self.primary_key = "news_id" belongs_to :object, :class_name => 'Obj', :foreign_key => 'object_id' end end