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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7d1b3d4e
Commit
7d1b3d4e
authored
Aug 14, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix passign full user object instead of id to Event.create
parent
6579ba3e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
app/observers/activity_observer.rb
app/observers/activity_observer.rb
+1
-1
app/observers/merge_request_observer.rb
app/observers/merge_request_observer.rb
+1
-1
spec/observers/activity_observer_spec.rb
spec/observers/activity_observer_spec.rb
+0
-1
No files found.
app/observers/activity_observer.rb
View file @
7d1b3d4e
...
@@ -33,7 +33,7 @@ class ActivityObserver < BaseObserver
...
@@ -33,7 +33,7 @@ class ActivityObserver < BaseObserver
target_id:
record
.
id
,
target_id:
record
.
id
,
target_type:
record
.
class
.
name
,
target_type:
record
.
class
.
name
,
action:
status
,
action:
status
,
author_id:
current_user
author_id:
current_user
.
id
)
)
end
end
end
end
app/observers/merge_request_observer.rb
View file @
7d1b3d4e
...
@@ -46,7 +46,7 @@ class MergeRequestObserver < ActivityObserver
...
@@ -46,7 +46,7 @@ class MergeRequestObserver < ActivityObserver
target_id:
record
.
id
,
target_id:
record
.
id
,
target_type:
record
.
class
.
name
,
target_type:
record
.
class
.
name
,
action:
status
,
action:
status
,
author_id:
current_user
author_id:
current_user
.
id
)
)
end
end
end
end
spec/observers/activity_observer_spec.rb
View file @
7d1b3d4e
...
@@ -8,7 +8,6 @@ describe ActivityObserver do
...
@@ -8,7 +8,6 @@ describe ActivityObserver do
it
{
@event
.
project
.
should
==
project
}
it
{
@event
.
project
.
should
==
project
}
end
end
describe
"Issue created"
do
describe
"Issue created"
do
before
do
before
do
Issue
.
observers
.
enable
:activity_observer
do
Issue
.
observers
.
enable
:activity_observer
do
...
...
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