agoragames / leaderboard

Leaderboards backed by Redis in Ruby
https://rubygems.org/gems/leaderboard
MIT License
478 stars 65 forks source link

Add global_member_data option that allows multiple leaderboards to share the same set of member_data #51

Closed dcampano closed 9 years ago

dcampano commented 9 years ago

We have a use case where we have a lot of leaderboards that have member data and the member data is all the same for the leaderboards. This member data gets duplicated unnecessarily. This patch allows multiple leaderboards to all share one set of member data.

Please review and let me know if there are any changes that you would like me to make.

czarneckid commented 9 years ago

:+1:

Thanks for the contribution. Let me get this integrated over the weekend.