Commit 765604784f63f556a3b44ce38e28df3bcb4606b0
1 parent
c0c8151c
Exists in
master
and in
23 other branches
Expanding task requestor for Profile
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/models/task.rb
| ... | ... | @@ -31,7 +31,7 @@ class Task < ActiveRecord::Base |
| 31 | 31 | end |
| 32 | 32 | end |
| 33 | 33 | |
| 34 | - belongs_to :requestor, :class_name => 'Person', :foreign_key => :requestor_id | |
| 34 | + belongs_to :requestor, :class_name => 'Profile', :foreign_key => :requestor_id | |
| 35 | 35 | belongs_to :target, :foreign_key => :target_id, :polymorphic => true |
| 36 | 36 | |
| 37 | 37 | validates_uniqueness_of :code, :on => :create | ... | ... |