Sha256: 0d4ccaab5c8934072797645c9a0803227d2dbca76a027f038034befe84c48c6b

Contents?: true

Size: 735 Bytes

Versions: 2

Compression:

Stored size: 735 Bytes

Contents

require 'carmen'
require 'carmen-rails'
require 'effective_addresses/engine'
require 'effective_addresses/version'

module EffectiveAddresses

  # The following are all valid config keys
  mattr_accessor :country_codes
  mattr_accessor :country_codes_priority
  mattr_accessor :addresses_table_name
  mattr_accessor :use_full_name
  mattr_accessor :use_address3
  mattr_accessor :simple_form_options
  mattr_accessor :validate_postal_code_format
  mattr_accessor :pre_selected_country
  mattr_accessor :pre_selected_state

  def self.setup
    yield self
  end

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

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
effective_addresses-1.8.6 lib/effective_addresses.rb
effective_addresses-1.8.5 lib/effective_addresses.rb