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.
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!