Document Web#default_web?

master
James Herdman 2009-08-31 01:12:13 -04:00
parent 7a7d187c7f
commit 3f265a520b
1 changed files with 2 additions and 1 deletions

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