Sometimes we would want to throttle certain application actions. For instance, a user should only be allowed to send x amount of emails to other members of the site in order to reduce the spam risk.
Since this is a quite common task, I thought I might as well make it as a Rails plugin for better code reusability.
I am now releasing Action Throttler, an easy to use Rails plugin to quickly throttle application actions based on configurable duration and limit. Go check out the code now! :)
There is currently no tests for the plugin but I will be adding rspec specs to it soon.
Enjoy what you are reading? Sign up for a better experience on Persumi.