Module: DependentFieldsFrameHelper

Defined in:
app/helpers/dependent_fields_frame_helper.rb

Instance Method Summary collapse

Instance Method Details

#accept_query_string_override_for(form, method) ⇒ Object



2
3
4
5
6
7
8
9
# File 'app/helpers/dependent_fields_frame_helper.rb', line 2

def accept_query_string_override_for(form, method)
  field_name = form.field_name(method)

  new_value = new_value_from_query_string(field_name)
  return if new_value.nil?

  form.object[method] = new_value
end