Continued-ish
...
...
...
...
https://github.com/FetLife/rollout
...
https://github.com/jnunemaker/flipper
...
...
...
|Staples Cohort|Users| |---|---|---| |Admin|7| |June 2014|195|
...
- We can preview new features for the 7 administrators
- Or create a cross-section of users by moving them to a new Beta Testers cohort...
- ...before we flip on the new features for all 195 users
...
class FeatureFlag
FEATURE_NAMES = [
:light_layout,
:dashboard_and_subjects,
:next_lesson_button,
:goals
]
...
end
...
class ApplicationController < ActionController::Base
layout :layout_by_feature
def layout_by_feature
return 'application' unless current_user
if current_user.feature?(:light_layout)
'application_light'
else
'application'
end
end
...
end