Sha256: dc00aa92b61ebc728ab642eaf941fd6b1e840131f9d3ce4a9633b5884cd850e8
Contents?: true
Size: 308 Bytes
Versions: 6
Compression:
Stored size: 308 Bytes
Contents
module Cms class ContentTypeGroup < ActiveRecord::Base 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
6 entries across 6 versions & 1 rubygems