Refactored conditional to an || to be more idiomatic.

This commit is contained in:
Josh Susser and Avdi Grimm 2013-05-17 14:06:58 -04:00 committed by Avdi Grimm
parent c793684d4c
commit d30330441a

View file

@ -77,10 +77,7 @@ class Group < ActiveRecord::Base
end end
def self.[](name) def self.[](name)
unless g = lookup_group(name) lookup_group(name) || refresh_automatic_group!(name)
g = refresh_automatic_group!(name)
end
g
end end
def self.lookup_group(name) def self.lookup_group(name)