9 lines
189 B
Ruby
9 lines
189 B
Ruby
|
class PersonalResearchTag < Tag
|
||
|
|
||
|
has_and_belongs_to_many :researchs
|
||
|
|
||
|
def get_visible_links(sort = :title)
|
||
|
self.researchs.where(:is_hidden => false).desc(:is_top, sort)
|
||
|
end
|
||
|
|
||
|
end
|