Sha256: 652d61f4ee6eb53fd86447b4b1f0d890f90fb4ef051e3b52fb7d5f452d50e75f
Contents?: true
Size: 413 Bytes
Versions: 1
Compression:
Stored size: 413 Bytes
Contents
module Saasable::SaasDocument @saas_document = nil def self.included klass if @saas_document and @saas_document != klass raise Saasable::Errors::MultipleSaasDocuments, "you can only have one Saasable::SaasDocument" else @saas_document = klass end klass.class_eval do field :hosts, :type => Array end end def self.saas_document @saas_document end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
saasable-0.1.0 | lib/saasable/saas_document.rb |