From fc3aea59e3e599119aa1547f2d48f74c4e5ec716 Mon Sep 17 00:00:00 2001 From: Pablo Torres Date: Fri, 31 May 2013 16:11:25 -0500 Subject: [PATCH] Use ||= idiom --- lib/mongo_mapper/plugins/scopes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mongo_mapper/plugins/scopes.rb b/lib/mongo_mapper/plugins/scopes.rb index 7af05e356..f0cc5f335 100644 --- a/lib/mongo_mapper/plugins/scopes.rb +++ b/lib/mongo_mapper/plugins/scopes.rb @@ -19,9 +19,9 @@ def scope(name, scope_options={}) end def scopes - self._scopes || self._scopes = {} + self._scopes ||= {} end end end end -end \ No newline at end of file +end