Sha256: 96393d2fbd11801599ced3acd9fe0af4db7efea69a276dcf3e587caca0fc3897

Contents?: true

Size: 646 Bytes

Versions: 11

Compression:

Stored size: 646 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

11 entries across 11 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 app/helpers/addresses_helper.rb
fat_free_crm-0.13.5 app/helpers/addresses_helper.rb
fat_free_crm-0.13.4 app/helpers/addresses_helper.rb
fat_free_crm-0.13.3 app/helpers/addresses_helper.rb
fat_free_crm-0.13.2 app/helpers/addresses_helper.rb
fat_free_crm-0.12.3 app/helpers/addresses_helper.rb
fat_free_crm-0.12.2 app/helpers/addresses_helper.rb
fat_free_crm-0.13.1 app/helpers/addresses_helper.rb
fat_free_crm-0.12.1 app/helpers/addresses_helper.rb
fat_free_crm-0.13.0 app/helpers/addresses_helper.rb
fat_free_crm-0.12.0 app/helpers/addresses_helper.rb