README.md in chirrin-chirrion-0.4.1 vs README.md in chirrin-chirrion-0.5.1
- old
+ new
@@ -18,9 +18,16 @@
redis_connection = Redis.new
redis_adapter = ChirrinChirrion::DatabaseAdapters::RedisAdapter.new(redis_connection)
ChirrinChirrion.config(database_adapter: redis_adapter)
```
+### Listing toggles
+
+```ruby
+ChirrinChirrion.list
+# => [#<OpenStruct description="What the toggle does.", active=true, name="toggle_name">]
+```
+
### Adding a toggle
```ruby
ChirrinChirrion.add_toggle('new_user_register_validation', {active: true, description: 'When this is active, gender, age and phone number are not required'})
```