Sha256: 4c32f098670eefd25dd1a878e5f4cbf214f7deac914937828df838462eaba789

Contents?: true

Size: 642 Bytes

Versions: 15

Compression:

Stored size: 642 Bytes

Contents

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
module AddressesHelper
  # Sets up new address when used in forms.
  #----------------------------------------------------------------------------
  def get_address(asset, type)
    asset.send("build_#{type}".to_sym) if asset.send(type.to_sym).nil?
    asset.send(type.to_sym)
  end

  def priority_countries
    Setting[:priority_countries]
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/helpers/addresses_helper.rb
fat_free_crm-0.15.2 app/helpers/addresses_helper.rb
fat_free_crm-0.16.4 app/helpers/addresses_helper.rb
fat_free_crm-0.14.1 app/helpers/addresses_helper.rb
fat_free_crm-0.15.1 app/helpers/addresses_helper.rb
fat_free_crm-0.16.3 app/helpers/addresses_helper.rb
fat_free_crm-0.16.2 app/helpers/addresses_helper.rb
fat_free_crm-0.16.1 app/helpers/addresses_helper.rb
fat_free_crm-0.16.0 app/helpers/addresses_helper.rb
fat_free_crm-0.15.0 app/helpers/addresses_helper.rb
fat_free_crm-0.15.0.beta.2 app/helpers/addresses_helper.rb
fat_free_crm-0.15.0.beta app/helpers/addresses_helper.rb
fat_free_crm-0.14.0 app/helpers/addresses_helper.rb
reduced_fat_crm-0.15.0.beta app/helpers/addresses_helper.rb
reduced_fat_crm-0.14.0 app/helpers/addresses_helper.rb