zeus.ugent.be/lib/helpers/projects.rb
2019-10-08 01:43:36 +02:00

5 lines
132 B
Ruby

module ProjectsHelper
def all_projects
@items.find_all('/projects/*').sort_by{|project| -(project[:priority] || 0)}
end
end