Class: WcoHosting::Domain
- Inherits:
-
Object
- Object
- WcoHosting::Domain
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- app/models/wco_hosting/domain.rb
Constant Summary collapse
- STATE_ACTIVE =
orbital.city : Z0145070C3DD1OJWHTXJ oquaney-splicing.com : Z060228025Y0JHUA35GN5 field :route53_zone validates :route53_zone, presence: true
'active'
- STATE_INACTIVE =
'inactive'
- STATES =
[ 'active', 'inactive' ]
Class Method Summary collapse
Class Method Details
.list ⇒ Object
20 21 22 |
# File 'app/models/wco_hosting/domain.rb', line 20 def self.list [[nil,nil]] + all.where({ state: STATE_ACTIVE }).map { |i| [i.name, i.name ] } end |