class PersonalHonorTag < Tag has_and_belongs_to_many :honors def get_visible_links(sort = :title) self.honors.where(:is_hidden => false).desc(:is_top, sort) end end