AgileVentures/LocalSupport

View on GitHub
app/helpers/form_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module FormHelper
  def setup_proposed_organisation_edit(proposed_organisation_edit)
    %w{name description address postcode email website donation_info telephone}.each do |field|
      proposed_organisation_edit.send("#{field}=".to_sym,proposed_organisation_edit.organisation.send(field.to_sym))
    end
    proposed_organisation_edit
  end
  
end