Use .scope instead of .scoped if available

Rails 4 has deprecated .scoped

Fixes #9