Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Series < ActiveRecord::Base
- belongs_to :user
- belongs_to :language
- belongs_to :media_rating
- has_many :series_people
- has_many :people, :through => :series_people
- attr_accessible :title, :subtitle, :description, :display_date, :enable_user_comments, :enable_user_rating
- attr_accessible :copyright, :public_email, :completed
- attr_accessible :user_id, :language_id, :media_rating_id, :series_id, :series_people, :series_people_attributes
- accepts_nested_attributes_for :series_people, :allow_destroy => true
- scope :overview, order("display_date DESC")
- end
Add Comment
Please, Sign In to add comment