Module: CollectionHelper
- Defined in:
- app/helpers/collection_helper.rb
Instance Method Summary collapse
Instance Method Details
#options_for_collection(field_name, collection) ⇒ Object
2 3 4 5 6 |
# File 'app/helpers/collection_helper.rb', line 2 def (field_name, collection) collection.map do |item| [t("g.collections.#{field_name}.#{item}"), item] end end |