fetlife / rollout

Feature flippers.
MIT License
2.89k stars 212 forks source link

Adds optional Generic callbacks feature flag toggle #163

Closed AndrewGorman closed 2 years ago

AndrewGorman commented 2 years ago

I have added an optional callback that will be called upon completion of a feature toggle. The reason for this feature is that we have a business need to tie an integration into the completion of a toggle so that we can provide a notification system for flags being toggled.

Please let me know if there is anything I can do to clean this up further or any additional test cases you would like to see added!

I also noticed a deprecation warning regarding the usage of Redis.current so I updated that usage and the tests appear to all still pass. Happy to remove that portion if desired.

Thanks for a great Gem!