Give FeaturePolicy a config object for env vars and user flags
On Virtualtrails I check features through a Pundit policy. Views call feature?(:staff_tools), feature?(:secret_site), or feature?(:native_bridge, context: app), and FeaturePolicy has a method that returns true or false. The first version put the whole answer in that method: def staff_tools? user&.admin? end Fine for “admins only”. Then I needed a boolean I could flip without a deploy, and a minimum app...