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