Module: HotGlueHelper

Defined in:
app/helpers/hot_glue_helper.rb

Defined Under Namespace

Classes: KVObject

Instance Method Summary collapse

Instance Method Details

#enum_to_collection_select(hash) ⇒ Object



10
11
12
# File 'app/helpers/hot_glue_helper.rb', line 10

def enum_to_collection_select(hash)
  hash.collect{|k,v| KVObject.new(key: k, value: v)}
end