BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
activity_observer.rb
app/observers/activity_observer.rb
+1
-1
merge_request_observer.rb
app/observers/merge_request_observer.rb
+1
-1
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
target_id:
record
.
id
,
target_type:
record
.
class
.
name
,
action:
status
,
author_id:
current_user
author_id:
current_user
.
id
)
end
end
app/observers/merge_request_observer.rb
View file @
7d1b3d4e
...
...
@@ -46,7 +46,7 @@ class MergeRequestObserver < ActivityObserver
target_id:
record
.
id
,
target_type:
record
.
class
.
name
,
action:
status
,
author_id:
current_user
author_id:
current_user
.
id
)
end
end
spec/observers/activity_observer_spec.rb
View file @
7d1b3d4e
...
...
@@ -8,7 +8,6 @@ describe ActivityObserver do
it
{
@event
.
project
.
should
==
project
}
end
describe
"Issue created"
do
before
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