File: project.rb

package info (click to toggle)
ruby-nested-form 0.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 816 kB
  • sloc: javascript: 11,625; ruby: 659; makefile: 2
file content (8 lines) | stat: -rw-r--r-- 249 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
class Project < ActiveRecord::Base
  has_many :tasks
  has_many :assignments, :class_name => 'ProjectTask' 
  accepts_nested_attributes_for :tasks
  accepts_nested_attributes_for :assignments

  has_many :not_nested_tasks, :class_name => 'Task'
end