Method: Achoo::Achievo::HourRegistrationForm#collect_options
- Defined in:
- lib/achoo/achievo/hour_registration_form.rb
#collect_options(field_name) ⇒ Object
77 78 79 80 81 |
# File 'lib/achoo/achievo/hour_registration_form.rb', line 77 def (field_name) @form.field_with(:name => field_name)..collect do |opt| [opt.value.match(/#{field_name}\.id='(\d+)'/)[1], opt.text] end end |