Class: WcoHosting::Domain
- Inherits:
-
Object
- Object
- WcoHosting::Domain
- 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
.list ⇒ Object
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_s ⇒ Object
19 20 21 |
# File 'app/models/wco_hosting/domain.rb', line 19 def to_s name end |