Class: WcoHosting::Domain

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, 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



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

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

Instance Method Details

#to_sObject



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

def to_s
  name
end