Rails 3+ support for scopes