Commit ed4fa79e authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'ee-app-services-1' into 'master'

Refactor prepend in interpret service

See merge request gitlab-org/gitlab!31838
parents f9bc8d20 d789edc3
---
title: Move prepend to last in ee-app-services
merge_request: 31838
author: Rajendra Kadam
type: fixed
...@@ -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')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment