Sha256: f57d072491f8d99603dfba7e1b0dd60d0013f8d02618cb36bbf5ad3c8c80d590
Contents?: true
Size: 446 Bytes
Versions: 1
Compression:
Stored size: 446 Bytes
Contents
module SiteFramework # This model represent the **Site** entity. # [SiteFramework::Middleware] will check for a site # with current domain of request and attach the object # to global **Rails** object class Site < ActiveRecord::Base has_many :domains # This method returns a slug for site title def slug if title title else # TODO: generate a sha1 hash base on time end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
site_framework-0.3.0 | app/models/site_framework/site.rb |