Skip to content

Commit d5ad336

Browse files
authored
bring back hidden pre-init initializer config (#5640)
1 parent 31dfb73 commit d5ad336

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

app/controllers/application_controller.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ def set_reporting_time_zone
1818
Groupdate.time_zone = "UTC"
1919
end
2020

21+
def current_enabled_features
22+
@current_enabled_features ||= Flipper.features.select { |feature| feature.enabled?(current_admin) }.map(&:name)
23+
end
24+
helper_method :current_enabled_features
25+
2126
private
2227

2328
# Send a user to the admins index after sending invitations
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
require "simple_server_extensions"
2+
require "metrics"
13
require "extensions/fetch_multi_fix"

0 commit comments

Comments
 (0)