Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab Community Edition
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
William George
GitLab Community Edition
Commits
94f03bdb
There was an error fetching the commit references. Please try again later.
Commit
94f03bdb
authored
6 years ago
by
William George
Browse files
Options
Downloads
Patches
Plain Diff
I think you do need the `@`
parent
22d650f9
No related branches found
No related tags found
No related merge requests found
Pipeline
#31994237
passed
6 years ago
Stage: prepare
Stage: test
Stage: post-test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/finders/user_finder.rb
+1
-1
1 addition, 1 deletion
app/finders/user_finder.rb
with
1 addition
and
1 deletion
app/finders/user_finder.rb
+
1
−
1
View file @
94f03bdb
...
...
@@ -53,6 +53,6 @@ class UserFinder
end
def
input_is_id?
username_or_id
.
is_a?
(
Numeric
)
||
username_or_id
=~
/^\d+$/
@
username_or_id
.
is_a?
(
Numeric
)
||
@
username_or_id
=~
/^\d+$/
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment