From 52915c62a511403cd0df2baecad2f08f0c1de804 Mon Sep 17 00:00:00 2001 From: David Carlos Date: Thu, 28 Aug 2014 12:02:51 -0300 Subject: [PATCH] software_search: Add value to vocabulary helper --- lib/controlled_vocabulary_helper.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/controlled_vocabulary_helper.rb b/lib/controlled_vocabulary_helper.rb index 69318e9..57f012c 100644 --- a/lib/controlled_vocabulary_helper.rb +++ b/lib/controlled_vocabulary_helper.rb @@ -1,14 +1,15 @@ module ControlledVocabularyHelper def self.get_categories_as_options - categories = ["".html_safe] + categories = ["".html_safe] + value = 1 ControlledVocabulary.attribute_names.each do |attribute| if attribute.to_s != "id" && attribute.to_s != "software_info_id" then - categories << "".html_safe + categories << "".html_safe + value+=1 end end - categories end end -- libgit2 0.21.2