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