Sha256: e7e3e063be630016f4beb35ec56b7d1f7a2cf7edb94cfc69b77d6d1987f7d8b4

Contents?: true

Size: 602 Bytes

Versions: 7

Compression:

Stored size: 602 Bytes

Contents

require "effective_addresses/engine"
require "effective_addresses/version"
#require 'migrant'     # Required for rspec to run properly

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

  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

7 entries across 7 versions & 1 rubygems

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