Merge pull request #214 from opf/feature/move_responsible_association

Move responsible association to work package
pull/185/merge
ulferts 11 years ago
commit 500edafb9b
  1. 3
      app/models/planning_element.rb
  2. 1
      app/models/work_package.rb

@ -15,9 +15,6 @@ class PlanningElement < WorkPackage
include NestedAttributesForApi
include ActiveModel::ForbiddenAttributesProtection
belongs_to :responsible, :class_name => "User",
:foreign_key => "responsible_id"
has_many :alternate_dates, :class_name => "AlternateDate",
:foreign_key => 'planning_element_id',
:autosave => true,

@ -22,6 +22,7 @@ class WorkPackage < ActiveRecord::Base
belongs_to :status, :class_name => 'IssueStatus', :foreign_key => 'status_id'
belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'
belongs_to :assigned_to, :class_name => 'User', :foreign_key => 'assigned_to_id'
belongs_to :responsible, :class_name => "User", :foreign_key => "responsible_id"
belongs_to :fixed_version, :class_name => 'Version', :foreign_key => 'fixed_version_id'
belongs_to :priority, :class_name => 'IssuePriority', :foreign_key => 'priority_id'
belongs_to :category, :class_name => 'IssueCategory', :foreign_key => 'category_id'

Loading…
Cancel
Save