Sha256: 25fdabd9f4127f04e21e1da694e3792503b199ca06334e1c02a4ef997c58ebae

Contents?: true

Size: 335 Bytes

Versions: 11

Compression:

Stored size: 335 Bytes

Contents

module Cms
  class ContentTypeGroup < ActiveRecord::Base
    attr_accessible :name

    has_many :content_types, :order => "#{ContentType.table_name}.id", :class_name => 'Cms::ContentType'

    has_many :types, :order=>"priority, name", :class_name => 'Cms::ContentType'

    def self.menu_list
      order(:id).all
    end


  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
browsercms-3.5.7 app/models/cms/content_type_group.rb
browsercms-3.5.6 app/models/cms/content_type_group.rb
browsercms-3.5.5 app/models/cms/content_type_group.rb
browsercms-3.5.4 app/models/cms/content_type_group.rb
browsercms-3.5.3 app/models/cms/content_type_group.rb
browsercms-3.5.2 app/models/cms/content_type_group.rb
browsercms-3.5.1 app/models/cms/content_type_group.rb
browsercms-3.5.0 app/models/cms/content_type_group.rb
browsercms-3.5.0.rc3 app/models/cms/content_type_group.rb
browsercms-3.5.0.rc2 app/models/cms/content_type_group.rb
browsercms-3.5.0.rc1 app/models/cms/content_type_group.rb