Skip to content

Commit 92a90da

Browse files
committed
Move Flipper defaults to development seeds
1 parent c10753c commit 92a90da

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

config/initializers/flipper.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,3 @@
33
Rails.application.configure do
44
config.flipper.memoize = false
55
end
6-
7-
if Rails.env.development?
8-
Flipper.enable(:user_registration)
9-
Flipper.enable(:snippets)
10-
Flipper.enable(:example_posts)
11-
end

db/seeds/development.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@
1919
START_COUNT_NEWSLETTERS = 5
2020
fill_count = START_COUNT_NEWSLETTERS - Newsletter.count
2121
FactoryBot.create_list(:newsletter, fill_count) if fill_count > 0
22+
23+
# Enable all flags by default
24+
Flipper.enable(:user_registration)
25+
Flipper.enable(:snippets)
26+
Flipper.enable(:example_posts)

0 commit comments

Comments
 (0)