mendicant-original / puzzlenode

Quiz application inspired by Project Euler and the Internet Problem Solving Contest (IPSC)
puzzlenode.com
81 stars 43 forks source link

Excluding users with draft access from leaderboard #18

Closed madebydna closed 13 years ago

madebydna commented 13 years ago

Changed logic in User#leaderboard to exclude users with draft access from being displayed on the leaderboard.

madebydna commented 13 years ago

Just added a named scope to the User model to extract the logic for excluding admins and users with draft access from being publicly displayed as puzzle solvers throughout the site.