Switch to lamba-based scopes for compliance with Rails 4 (which depreciated hash-based scope conditions)