2 3 4 5 6 7 8
# File 'app/helpers/invoice_helper.rb', line 2 def invoice_states_as_collection states = Invoice::STATES states.inject({}) do |result, state| result[t(state, :scope => 'invoice.state')] = state result end end