lib/whimsy/asf/ldap.rb in whimsy-asf-0.0.60 vs lib/whimsy/asf/ldap.rb in whimsy-asf-0.0.61
- old
+ new
@@ -52,10 +52,10 @@
result
end
def self.refresh(symbol)
- if Time.now - @mtime > 300.0
+ if not @mtime or Time.now - @mtime > 300.0
@mtime = Time.now
end
if instance_variable_get("#{symbol}_mtime") != @mtime
instance_variable_set("#{symbol}_mtime", @mtime)