-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boxer.ship_all Method for Collections #2
Comments
What is the last parameter supposed to mean, some kind of condition? |
Good question. The intention is for the last argument to be a hash just like with The value of
The rest of the pairs in that last argument hash would be sent along to each box, just as with |
This looks like a good solution. Would be nice to include some additional values at the top level, such as for paging (per_page, page, results (a count)). Any suggestions on how to implement this until Boxer ship_all is included? |
I wrote my own simple version of ship-all class Boxer
def self.ship_all(type, objects, *args)
objects.map { |o| Boxer.ship(type, o, *args) }
end
end |
The text was updated successfully, but these errors were encountered: