Sha256: dd27dec1e3405a3e9a566c89de60108a5c1a106939d25502ba2b4eaa46e277fa

Contents?: true

Size: 618 Bytes

Versions: 6

Compression:

Stored size: 618 Bytes

Contents

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 :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, :city, :country_code, :state_code, :postal_code, :full_name]
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
effective_addresses-1.3.6 lib/effective_addresses.rb
effective_addresses-1.3.5 lib/effective_addresses.rb
effective_addresses-1.3.4 lib/effective_addresses.rb
effective_addresses-1.3.2 lib/effective_addresses.rb
effective_addresses-1.3.1 lib/effective_addresses.rb
effective_addresses-1.3.0 lib/effective_addresses.rb