Document Web#default_web?

This commit is contained in:
James Herdman 2009-08-31 01:12:13 -04:00
parent 7a7d187c7f
commit 3f265a520b

View file

@ -204,7 +204,8 @@ class Web < ActiveRecord::Base
end
end
# @return [Boolean] whether or not this record is considered the default Web
def default_web?
defined? DEFAULT_WEB and self.address == DEFAULT_WEB
defined?(DEFAULT_WEB) && address == DEFAULT_WEB
end
end