Wrap scopes in lambda to silence Rails4 deprecation warnings