Sha256: 939338f26388376f643325d94821de2b51601142e1f241070a58e8cf9869cfd9
Contents?: true
Size: 319 Bytes
Versions: 3
Compression:
Stored size: 319 Bytes
Contents
module Smithy class TemplateContainer < ActiveRecord::Base validates_presence_of :name, :template belongs_to :template has_many :pages, :through => :template attr_accessible :name, :position default_scope :order => [:position, :name] def display_name name.titleize end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
smithycms-0.0.3 | app/models/smithy/template_container.rb |
smithycms-0.0.2 | app/models/smithy/template_container.rb |
smithycms-0.0.1 | app/models/smithy/template_container.rb |