Module: HouseholdsHelper

Defined in:
app/helpers/households_helper.rb

Instance Method Summary collapse

Instance Method Details

#household_addresses_for_select(household) ⇒ Object



3
4
5
# File 'app/helpers/households_helper.rb', line 3

def household_addresses_for_select(household)
  [[nil, nil]] + household.addresses.includes(:person).map { |a| ["#{a.person} - #{a}", a.id] }
end