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
|
# frozen_string_literal: true
Flipflop.configure do
# Strategies will be used in the order listed here.
strategy :active_record
strategy :default
feature :april_fools
feature :site_interactivity, default: true, description: 'Allow any site interactivity at all for non-staff (uploads, comments, forum posts, etc.)'
feature :image_uploads, default: true, description: 'Allow image uploads for non-staff.'
feature :user_registration, default: true, description: 'Allow new user accounts to be created.'
feature :captcha, default: true, description: 'Require anonymous users to fill out a CAPTCHA to upload.'
feature :report_limit, default: false, description: 'Limit the number of open reports per user.'
# 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."
end
|