zeus.ugent.be/lib/helpers/projects.rb

6 lines
132 B
Ruby
Raw Normal View History

2016-10-03 21:56:08 +02:00
module ProjectsHelper
def all_projects
2019-10-08 01:43:36 +02:00
@items.find_all('/projects/*').sort_by{|project| -(project[:priority] || 0)}
2016-10-03 21:56:08 +02:00
end
end