diff --git a/lib/helpers/verenigingen.rb b/lib/helpers/verenigingen.rb index 63f8608..3fef67a 100644 --- a/lib/helpers/verenigingen.rb +++ b/lib/helpers/verenigingen.rb @@ -51,17 +51,15 @@ module VerenigingenHelper else item[:image] end - def abbreviation(item) - item.identifier.without_ext.split('/').last - end - def verenigingen_random(amount) - @items.find_all("**/verenigingen/*").map{|x| { - "titel" => x[:titel], - "naam" => x[:naam], - "konvent" => x[:konvent], - "themas" => x[:themas] - }}.to_a.shuffle[0..amount] - end + end + + def verenigingen_random(amount) + @items.find_all("**/verenigingen/*").map { |x| { + "titel" => x[:titel], + "naam" => x[:naam], + "konvent" => x[:konvent], + "themas" => x[:themas] + } }.to_a.shuffle[0..amount] end def image_tag(item)