app/helpers/application_helper.rb
# application layout helpers
# active currencies to by used in page header LOV
application layout helpers
active currencies to by used in page header LOV
application layout helpers active currencies to by used in page header LOV
def currencies
    active_currencies = ExchangeRate.active_currencies
    Money::Currency.table.find_all do |a|
      !active_currencies or active_currencies.size == 0 or active_currencies.index(a[1][:iso_code]) or a[1][:iso_code] == BASE_CURRENCY
    end.collect do |a|
      [ "#{a[1][:iso_code]} #{a[1][:name]}".first(CURRENCY_LOV_LENGTH), a[1][:iso_code] ]
    end
  end
def currencies active_currencies = ExchangeRate . active_currencies Money :: Currency . table . find_all do | a | ! active_currencies or active_currencies . size == 0 or active_currencies . index ( a [ 1 ] [ :iso_code ] ) or a [ 1 ] [ :iso_code ] == BASE_CURRENCY end . collect do | a | [ "#{a[1][:iso_code]} #{a[1][:name]}" . first ( CURRENCY_LOV_LENGTH ) , a [ 1 ] [ :iso_code ] ] end end
application layout helpers
active currencies to by used in page header LOV
application layout helpers active currencies to by used in page header LOV