Moved scope into lamda, as required by AR 4+.
DRY'd scope creation.
Added Rails 4.0.0.rc appraisal.
Merge pull request #12 from kmcbride/rails4

Added Rails 4 support