Sha256: 0912cce9567bf7e05ba5fac2a37df2a19eba6d8cb3824034ce34d48f88364ccd

Contents?: true

Size: 1.59 KB

Versions: 4

Compression:

Stored size: 1.59 KB

Contents

EffectiveAddresses.setup do |config|
  # 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

4 entries across 4 versions & 1 rubygems

Version Path
effective_addresses-1.11.5 config/effective_addresses.rb
effective_addresses-1.11.2 config/effective_addresses.rb
effective_addresses-1.11.1 config/effective_addresses.rb
effective_addresses-1.11.0 config/effective_addresses.rb