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

13 lines
255 B
Ruby
Raw Normal View History

2019-11-27 14:30:30 +01:00
module PrivacyHelper
2019-12-10 21:34:33 +01:00
def all_privacy_items
@items.find_all('/about/privacy/*')
end
def privacy_projects(status)
2019-12-10 21:34:33 +01:00
all_privacy_items
2019-11-27 14:30:30 +01:00
.select {|project| project[:status] == status}
.sort_by {|project| project[:name]}
end
end