Sha256: fb758a8f64a9ee6b5d1ab57b6e61a40e15209879a8a49135b630984ffeb9247f

Contents?: true

Size: 1.7 KB

Versions: 19

Compression:

Stored size: 1.7 KB

Contents

EffectiveAddresses.setup do |config|
  # Database table name to store addresses in.  Default is :addresses
  config.addresses_table_name = :addresses

  # Display Full Name on Address forms, and validate presence by default
  # (can be overridden on a per address basis)
  config.use_full_name = true

  # A 3rd address field
  config.use_address3 = false

  # Country codes to display in country_select dropdowns.
  config.country_codes = :all
  #config.country_codes = ['US', 'CA'] # Or you can be more selective...

  # Select these countries ontop of the others
  # config.country_codes_priority = ['US', 'CA']

  # Force this country to be preselected on any new address forms.
  # Valid values are: country code, country name, or nil.
  # Leave nil if using Geocoder for IP based discovery.
  config.pre_selected_country = nil

  # Force this state to be preselected on any new address forms.
  # Must also define pre_selected_country for this to take affect
  # Valid values are: state code, state name, or nil.
  # Leave nil if using Geocoder for IP based discovery.
  config.pre_selected_state = nil

  # Validate that the postal/zip code format is correct for these countries
  # Right now, only US and Canada are supported
  config.validate_postal_code_format = ['US', 'CA']

  # SimpleForm Options
  # This Hash of options will be passed into any simple_form_for() calls
  config.simple_form_options = {}

  # config.simple_form_options = {
  #   :html => {:class => ['form-horizontal']},
  #   :wrapper => :horizontal_form,
  #   :wrapper_mappings => {
  #     :boolean => :horizontal_boolean,
  #     :check_boxes => :horizontal_radio_and_checkboxes,
  #     :radio_buttons => :horizontal_radio_and_checkboxes
  #   }
  # }
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
effective_addresses-1.10.4 config/effective_addresses.rb
effective_addresses-1.10.3 config/effective_addresses.rb
effective_addresses-1.10.2 config/effective_addresses.rb
effective_addresses-1.10.1 config/effective_addresses.rb
effective_addresses-1.10.0 config/effective_addresses.rb
effective_addresses-1.9.11 config/effective_addresses.rb
effective_addresses-1.9.10 config/effective_addresses.rb
effective_addresses-1.9.9 config/effective_addresses.rb
effective_addresses-1.9.8 config/effective_addresses.rb
effective_addresses-1.9.7 config/effective_addresses.rb
effective_addresses-1.9.6 config/effective_addresses.rb
effective_addresses-1.9.5 config/effective_addresses.rb
effective_addresses-1.9.4 config/effective_addresses.rb
effective_addresses-1.9.3 config/effective_addresses.rb
effective_addresses-1.9.2 config/effective_addresses.rb
effective_addresses-1.9.1 config/effective_addresses.rb
effective_addresses-1.9.0 config/effective_addresses.rb
effective_addresses-1.8.6 config/effective_addresses.rb
effective_addresses-1.8.5 config/effective_addresses.rb