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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
81eae63b
Commit
81eae63b
authored
Feb 13, 2017
by
winniehell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use safe navigation operator to make rubocop happy
parent
2cb70671
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/models/environment.rb
app/models/environment.rb
+1
-1
app/services/issues/create_service.rb
app/services/issues/create_service.rb
+1
-1
No files found.
app/models/environment.rb
View file @
81eae63b
...
...
@@ -126,7 +126,7 @@ class Environment < ActiveRecord::Base
return
unless
available?
stop!
stop_action
.
play
(
current_user
)
if
stop_action
stop_action
&
.
play
(
current_user
)
end
def
actions_for
(
environment
)
...
...
app/services/issues/create_service.rb
View file @
81eae63b
...
...
@@ -15,7 +15,7 @@ module Issues
def
before_create
(
issuable
)
if
@recaptcha_verified
spam_log
=
current_user
.
spam_logs
.
find_by
(
id:
@spam_log_id
,
title:
issuable
.
title
)
spam_log
.
update!
(
recaptcha_verified:
true
)
if
spam_log
spam_log
&
.
update!
(
recaptcha_verified:
true
)
else
issuable
.
spam
=
spam_service
.
check
(
@api
)
issuable
.
spam_log
=
spam_service
.
spam_log
...
...
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