-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfeatures.rb
More file actions
37 lines (32 loc) · 1.16 KB
/
features.rb
File metadata and controls
37 lines (32 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require_relative "../lib/content_block_manager"
Flipflop.configure do
# Strategies will be used in the order listed here.
strategy :active_record, hidden: !Rails.env.development?
strategy :cookie
strategy :default
# Other strategies:
#
# strategy :sequel
# strategy :redis
#
# strategy :query_string
# strategy :session
#
# strategy :my_strategy do |feature|
# # ... your custom code here; return true/false/nil.
# end
# Declare your features, e.g:
#
# feature :world_domination,
# default: true,
# description: "Take over the world."
feature :show_all_content_block_types,
description: "Show all applicable content block types in Content Block Manager",
default: ContentBlockManager.integration_or_staging? || !Rails.env.production?
feature :ga4_form_tracking,
description: "Add GA4 form tracking to Content Block Manager",
default: ContentBlockManager.integration_or_staging? || !Rails.env.production?
feature :show_snippets,
description: "Show snippets in Content Block preview",
default: ContentBlockManager.integration_or_staging? || !Rails.env.production?
end