Fixes ActiveRecord 4.0 warning

It seems that AR 4.0 has changed how to define default scopes.