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
8711dfa6
Commit
8711dfa6
authored
Sep 04, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just use the module function
parent
8fb3b039
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
app/helpers/license_helper.rb
app/helpers/license_helper.rb
+1
-1
app/models/issue_assignee.rb
app/models/issue_assignee.rb
+1
-3
No files found.
app/helpers/license_helper.rb
View file @
8711dfa6
...
...
@@ -80,7 +80,7 @@ module LicenseHelper
return
@show_promotions
if
defined?
(
@show_promotions
)
@show_promotions
=
if
current_application_settings
.
should_check_namespace_plan?
if
Gitlab
::
CurrentSettings
.
current_application_settings
.
should_check_namespace_plan?
true
else
license
=
License
.
current
...
...
app/models/issue_assignee.rb
View file @
8711dfa6
class
IssueAssignee
<
ActiveRecord
::
Base
extend
Gitlab
::
CurrentSettings
belongs_to
:issue
belongs_to
:assignee
,
class_name:
"User"
,
foreign_key: :user_id
...
...
@@ -9,7 +7,7 @@ class IssueAssignee < ActiveRecord::Base
# EE-specific
def
update_elasticsearch_index
if
current_application_settings
.
elasticsearch_indexing?
if
Gitlab
::
CurrentSettings
.
current_application_settings
.
elasticsearch_indexing?
ElasticIndexerWorker
.
perform_async
(
:update
,
'Issue'
,
...
...
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