Update active record scopes to return actual scope object instead of hash
Merge pull request #416 from dimko/patch-1

Fix deprecation warnings on active record scopes