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
e13b5dc7
Commit
e13b5dc7
authored
Aug 01, 2019
by
Patrick Derichs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change block parameter name to params
parent
0e99daae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/controllers/concerns/issuable_actions.rb
app/controllers/concerns/issuable_actions.rb
+1
-1
app/controllers/snippets/notes_controller.rb
app/controllers/snippets/notes_controller.rb
+2
-2
No files found.
app/controllers/concerns/issuable_actions.rb
View file @
e13b5dc7
...
...
@@ -227,7 +227,7 @@ module IssuableActions
{
target:
@issuable
,
notes_filter:
notes_filter
}.
tap
{
|
hash
|
hash
[
:project
]
=
project
if
respond_to?
(
:project
,
true
)
}
}.
tap
{
|
new_params
|
new_params
[
:project
]
=
project
if
respond_to?
(
:project
,
true
)
}
end
# rubocop:enable Gitlab/ModuleWithInstanceVariables
end
app/controllers/snippets/notes_controller.rb
View file @
e13b5dc7
...
...
@@ -27,8 +27,8 @@ class Snippets::NotesController < ApplicationController
alias_method
:noteable
,
:snippet
def
finder_params
params
.
merge
(
last_fetched_at:
last_fetched_at
,
target_id:
snippet
.
id
,
target_type:
'personal_snippet'
).
tap
do
|
hash
|
hash
[
:project
]
=
project
if
respond_to?
(
:project
)
params
.
merge
(
last_fetched_at:
last_fetched_at
,
target_id:
snippet
.
id
,
target_type:
'personal_snippet'
).
tap
do
|
merged_params
|
merged_params
[
:project
]
=
project
if
respond_to?
(
:project
)
end
end
...
...
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