Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
10df55e1
Commit
10df55e1
authored
Dec 18, 2011
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing dependent for notes assoc
parent
132177c2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/models/issue.rb
app/models/issue.rb
+1
-1
app/models/merge_request.rb
app/models/merge_request.rb
+1
-1
app/models/snippet.rb
app/models/snippet.rb
+1
-1
No files found.
app/models/issue.rb
View file @
10df55e1
...
...
@@ -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
...
...
app/models/merge_request.rb
View file @
10df55e1
...
...
@@ -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
...
...
app/models/snippet.rb
View file @
10df55e1
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment