Document Web#default_web?
This commit is contained in:
parent
7a7d187c7f
commit
3f265a520b
1 changed files with 2 additions and 1 deletions
|
@ -204,7 +204,8 @@ class Web < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# @return [Boolean] whether or not this record is considered the default Web
|
||||||
def default_web?
|
def default_web?
|
||||||
defined? DEFAULT_WEB and self.address == DEFAULT_WEB
|
defined?(DEFAULT_WEB) && address == DEFAULT_WEB
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue