10 lines
190 B
Ruby
10 lines
190 B
Ruby
|
class ArchiveTag < Tag
|
||
|
|
||
|
has_and_belongs_to_many :archive_files
|
||
|
|
||
|
|
||
|
def get_visible_links(sort = :name)
|
||
|
self.archive_files.where(:is_hidden => false).desc(:is_top, sort)
|
||
|
end
|
||
|
|
||
|
end
|