Class: WcoHosting::Domain

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Paranoia, Mongoid::Timestamps
Defined in:
app/models/wco_hosting/domain.rb

Constant Summary collapse

STATUS_ACTIVE =
'active'
STATUS_INACTIVE =
'inactive'
STATUSES =
[ 'active', 'inactive' ]

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.listObject



22
23
24
# File 'app/models/wco_hosting/domain.rb', line 22

def self.list
  [[nil,nil]] + active.map { |i| [i.name, i.name ] }
end

Instance Method Details

#to_sObject



19
20
21
# File 'app/models/wco_hosting/domain.rb', line 19

def to_s
  name
end