Please sign in to comment.
Bugfix for handling general enumerables instead of Arrays
* In the case that the `recipients` parameter to `Notification#notify_all` is a non-`Array` enumerable this method would wrap it up in an Array, which would lead to an error. A good example of this is the case where recipients is an `ActiveRecord::Relation` from `User#where` for instance. By checking instead that the `recipients` parameter responds to `:each` (and `uniq` where appropriate) this latter, standard Rails case, is covered.
- Loading branch information...
Showing with 21 additions and 3 deletions.