Skip to content
Snippets Groups Projects
Commit 10df55e1 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Added missing dependent for notes assoc

parent 132177c2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -2,7 +2,7 @@ class Issue < ActiveRecord::Base
belongs_to :project
belongs_to :author, :class_name => "User"
belongs_to :assignee, :class_name => "User"
has_many :notes, :as => :noteable
has_many :notes, :as => :noteable, :dependent => :destroy
 
attr_protected :author, :author_id, :project, :project_id
 
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@ class MergeRequest < ActiveRecord::Base
belongs_to :project
belongs_to :author, :class_name => "User"
belongs_to :assignee, :class_name => "User"
has_many :notes, :as => :noteable
has_many :notes, :as => :noteable, :dependent => :destroy
 
attr_protected :author, :author_id, :project, :project_id
 
Loading
Loading
Loading
Loading
@@ -3,7 +3,7 @@ class Snippet < ActiveRecord::Base
 
belongs_to :project
belongs_to :author, :class_name => "User"
has_many :notes, :as => :noteable
has_many :notes, :as => :noteable, :dependent => :destroy
 
delegate :name,
:email,
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment