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
192ccaeb
Commit
192ccaeb
authored
Oct 19, 2018
by
JB Vasseur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable offense on the appropriate line only !22296
parent
9f340839
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
app/finders/applications_finder.rb
app/finders/applications_finder.rb
+2
-6
No files found.
app/finders/applications_finder.rb
View file @
192ccaeb
...
@@ -7,20 +7,16 @@ class ApplicationsFinder
...
@@ -7,20 +7,16 @@ class ApplicationsFinder
@params
=
params
@params
=
params
end
end
# rubocop: disable CodeReuse/ActiveRecord
def
execute
def
execute
applications
=
Doorkeeper
::
Application
.
where
(
owner_id:
nil
)
applications
=
Doorkeeper
::
Application
.
where
(
owner_id:
nil
)
# rubocop: disable CodeReuse/ActiveRecord
by_id
(
applications
)
by_id
(
applications
)
end
end
# rubocop: enable CodeReuse/ActiveRecord
private
private
# rubocop: disable CodeReuse/ActiveRecord
def
by_id
(
applications
)
def
by_id
(
applications
)
return
applications
unless
params
[
:id
]
return
applications
unless
params
[
:id
]
Doorkeeper
::
Application
.
find_by
(
id:
params
[
:id
])
Doorkeeper
::
Application
.
find_by
(
id:
params
[
:id
])
# rubocop: disable CodeReuse/ActiveRecord
end
end
# rubocop: enable CodeReuse/ActiveRecord
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