class ServerAbilityManager include Mongoid::Document include Mongoid::Timestamps include OrbitCategory::Categorizable include OrbitTag::Taggable field :store_token field :site_name field :site_url field :site_ip field :site_num, type: Integer, default: 0 field :max_site_ability, type: Integer, default: 0 def site_name_layout(url=nil,site_name=nil) url = self.site_url if url.nil? site_name = self.site_name if site_name.nil? "#{site_name}