class SubRepertoire < ActiveRecord::Base belongs_to :repertoire has_many :tag_repertoires, :dependent => :destroy, :order => "tag_repertoires.updated_at desc" #has_many :mirror_repositories attr_accessible :id, :name, :repertoire_id scope :field_for_list, lambda{select([:id, :name, :repertoire_id])} end