README.md in feature_gate-0.1.3 vs README.md in feature_gate-0.1.4
- old
+ new
@@ -18,10 +18,18 @@
Add to `config/routes.rb`
mount FeatureGate::Engine, at: '/feature_gate'
+## Optional Configurations
+
+Add `config/initializers/feature_gate.rb`
+
+ FeatureGate.setup do |config|
+ config.time_to_stale = 2.weeks # time until a gate is listed as stale, default is 1 month.
+ end
+
## Usage
### Gating features
All gates are closed by default, meaning the features you gate will be hidden until you toggle the gates open.
@@ -68,5 +76,9 @@
FeatureGate::Manager.opened_gates
To see the names of all closed gates:
FeatureGate::Manager.closed_gates
+
+To see the names of all stale gates:
+
+ FeatureGate::Manager.stale_gates