Sha256: 2fbb44e42a55c0061a6785905f4488ce2cf5c3a5df9aa01379c9c234becdde73
Contents?: true
Size: 435 Bytes
Versions: 40
Compression:
Stored size: 435 Bytes
Contents
class WcoHosting::TaskTmpl include Mongoid::Document include Mongoid::Timestamps include Mongoid::Paranoia store_in collection: 'wco_task_tmpls' field :slug validates :slug, presence: true has_many :tasks, class_name: 'WcoHosting::Task' has_and_belongs_to_many :appliance_tmpls, class_name: 'WcoHosting::ApplianceTmpl' def to_s slug end def self.list [[nil,nil]] + all.map { |t| [t, t.id] } end end
Version data entries
40 entries across 40 versions & 1 rubygems