Module: AddressesHelper
- Defined in:
- app/helpers/addresses_helper.rb
Overview
Copyright © 2008-2013 Michael Dvorkin and contributors.
Fat Free CRM is freely distributable under the terms of MIT license. See MIT-LICENSE file or www.opensource.org/licenses/mit-license.php
Instance Method Summary collapse
-
#get_address(asset, type) ⇒ Object
Sets up new address when used in forms.
- #priority_countries ⇒ Object
Instance Method Details
#get_address(asset, type) ⇒ Object
Sets up new address when used in forms.
11 12 13 14 |
# File 'app/helpers/addresses_helper.rb', line 11 def get_address(asset, type) asset.send("build_#{type}".to_sym) if asset.send(type.to_sym).nil? asset.send(type.to_sym) end |
#priority_countries ⇒ Object
16 17 18 |
# File 'app/helpers/addresses_helper.rb', line 16 def priority_countries Setting[:priority_countries] end |