cartalyst/sentry — pull request #315 by marcvdm (2013-11-11 02:53:49+00:00)
Title: Adding a findByUserModel to the throttle provider

When using Sentry::check() multiple times i noticed that it makes 2 queries for getting the user and the throttle.
The check() method already has a user model to give to the throttle provider.

So instead of just giving the id we give the whole model so we don't have to redo the query,

Also reduced the amount of double code to zero.

PS: my first pull request via git ever, so be nice :laughing: