Sha256: beada5c03ab9a3e41342f984d47b52c814ef44584517903651937f19abb182e1

Contents?: true

Size: 223 Bytes

Versions: 16

Compression:

Stored size: 223 Bytes

Contents

module Optimacms
  class TemplateType < ActiveRecord::Base
    self.table_name = 'cms_templatetypes'

    TYPE_LAYOUT = 1
    TYPE_PAGE = 2

    has_many :templates

    def to_s
      title
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
optimacms-0.1.32 app/models/optimacms/template_type.rb
optimacms-0.1.31 app/models/optimacms/template_type.rb
optimacms-0.1.28 app/models/optimacms/template_type.rb
optimacms-0.1.27 app/models/optimacms/template_type.rb
optimacms-0.1.25 app/models/optimacms/template_type.rb
optimacms-0.1.24 app/models/optimacms/template_type.rb
optimacms-0.1.23 app/models/optimacms/template_type.rb
optimacms-0.1.21 app/models/optimacms/template_type.rb
optimacms-0.1.19 app/models/optimacms/template_type.rb
optimacms-0.1.17 app/models/optimacms/template_type.rb
optimacms-0.1.15 app/models/optimacms/template_type.rb
optimacms-0.1.14 app/models/optimacms/template_type.rb
optimacms-0.1.5 app/models/optimacms/template_type.rb
optimacms-0.1.3 app/models/optimacms/template_type.rb
optimacms-0.1.2 app/models/optimacms/template_type.rb
optimacms-0.1.1 app/models/optimacms/template_type.rb