Fixed DEPRECATION WARNING: Calling #scope or #default_scope with a hash is deprecated.