app/helpers/dynaspan/application_helper.rb in dynaspan-0.1.0 vs app/helpers/dynaspan/application_helper.rb in dynaspan-0.1.1
- old
+ new
@@ -27,19 +27,21 @@
else
raise 'You did not provide a symbol for the form field.'
end
edit_text = nil unless edit_text.is_a? String
options = (parameters[-1].is_a?(Hash) ? parameters[-1] : {})
+ options.default = nil
render(
partial: "dynaspan/dynaspan_text_#{kind}",
locals: {
- master_ds_object: master_ds_object,
- attr_object: attr_object,
- attrib: attrib,
- unique_ref_id: dynaspan_counter,
- dyna_span_edit_text: edit_text,
- hidden_fields: options[:hidden_fields],
- ds_callback_on_update: options[:callback_on_update]
+ master_ds_object: master_ds_object,
+ attr_object: attr_object,
+ attrib: attrib,
+ unique_ref_id: dynaspan_counter,
+ dyna_span_edit_text: edit_text,
+ hidden_fields: options[:hidden_fields],
+ ds_callback_on_update: options[:callback_on_update],
+ ds_callback_with_values: options[:callback_with_values]
}
)
end
end
end
\ No newline at end of file