Sha256: 11fde93ffd3f86f5d45aa61acf440ffa3b3a4307ae45491fd87f2157c1450943
Contents?: true
Size: 1.55 KB
Versions: 4
Compression:
Stored size: 1.55 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 # Preselect this country on any new address forms # Valid values are: country code, country name, or nil config.pre_selected_country = nil # Preselect this state 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 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