Fix deprecation 'Calling #default_scope without a block is deprecated'