Update scopes for Rails 4
Merge pull request #5 from mikeycgto/master

Updates for Rails 4