Boolean
Boolean features are either enabled or disable for all users.
All on or all off. Think top level things like :stats, :search, :logging, etc. Also, an easy way to release a new feature, as once a feature is boolean enabled it is on for every situation.
Enabling a feature
user = User.first
Flipper.enabled?(:search) # false
Flipper.enabled?(:search, user) # false
Flipper.enable(:search)
Flipper.enabled?(:search) # true
Flipper.enabled?(:search, user) # true
Disabling a feature
Flipper.disable(:search)
Flipper.enabled?(:search) # false
Flipper.enabled?(:search, user) # false
Ready to try it out?
Get audit history, rollbacks, advanced permissions, analytics, and all of your projects in one place.
Prefer our Cloudless option?
You can choose from several tiers to sponsor Flipper on GitHub and get some great benefits!