Sha256: e7cf32feb76a5d9d8aa62a30b234a6e2f71d85ec5a2f7408faf18dc4c8967f1d

Contents?: true

Size: 1.21 KB

Versions: 8

Compression:

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

  # 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'] # Leave empty array for no priority countries

  # 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

8 entries across 8 versions & 1 rubygems

Version Path
effective_addresses-1.1.0 lib/generators/templates/effective_addresses.rb
effective_addresses-1.0.6 lib/generators/templates/effective_addresses.rb
effective_addresses-1.0.5 lib/generators/templates/effective_addresses.rb
effective_addresses-1.0.4 lib/generators/templates/effective_addresses.rb
effective_addresses-1.0.3 lib/generators/templates/effective_addresses.rb
effective_addresses-1.0.2 lib/generators/templates/effective_addresses.rb
effective_addresses-1.0.1 lib/generators/templates/effective_addresses.rb
effective_addresses-1.0.0 lib/generators/templates/effective_addresses.rb