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
d789edc3
Commit
d789edc3
authored
May 24, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
May 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor prepend in interpret service
parent
f9bc8d20
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
changelogs/unreleased/ee-app-services-1.yml
changelogs/unreleased/ee-app-services-1.yml
+5
-0
lib/feature.rb
lib/feature.rb
+2
-2
No files found.
changelogs/unreleased/ee-app-services-1.yml
0 → 100644
View file @
d789edc3
---
title
:
Move prepend to last in ee-app-services
merge_request
:
31838
author
:
Rajendra Kadam
type
:
fixed
lib/feature.rb
View file @
d789edc3
...
@@ -4,8 +4,6 @@ require 'flipper/adapters/active_record'
...
@@ -4,8 +4,6 @@ require 'flipper/adapters/active_record'
require
'flipper/adapters/active_support_cache_store'
require
'flipper/adapters/active_support_cache_store'
class
Feature
class
Feature
prepend_if_ee
(
'EE::Feature'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
# Classes to override flipper table names
# Classes to override flipper table names
class
FlipperFeature
<
Flipper
::
Adapters
::
ActiveRecord
::
Feature
class
FlipperFeature
<
Flipper
::
Adapters
::
ActiveRecord
::
Feature
# Using `self.table_name` won't work. ActiveRecord bug?
# Using `self.table_name` won't work. ActiveRecord bug?
...
@@ -186,3 +184,5 @@ class Feature
...
@@ -186,3 +184,5 @@ class Feature
end
end
end
end
end
end
Feature
.
prepend_if_ee
(
'EE::Feature'
)
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