Module: EffectiveAddresses

Includes:
EffectiveGem
Defined in:
lib/effective_addresses.rb,
lib/effective_addresses/engine.rb,
lib/effective_addresses/version.rb,
lib/generators/effective_addresses/install_generator.rb

Defined Under Namespace

Modules: Generators Classes: Engine

Constant Summary collapse

VERSION =
'1.11.5'.freeze

Class Method Summary collapse

Class Method Details

.config_keysObject



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/effective_addresses.rb', line 8

def self.config_keys
  [
    :addresses_table_name,
    :country_codes,
    :country_codes_priority,
    :use_full_name,
    :use_address3,
    :simple_form_options,
    :validate_postal_code_format,
    :pre_selected_country,
    :pre_selected_state
  ]
end

.permitted_paramsObject



24
25
26
27
28
29
# File 'lib/effective_addresses.rb', line 24

def self.permitted_params
  [
    :address1, :address2, :address3, :city, :country_code, :state_code, :postal_code,
    :full_name, :shipping_address_same_as_billing
  ]
end