Sha256: 010e19d01c1c20c431865cf4d0d725fd3845ceb6ea6baf5936f57c8f92edc230

Contents?: true

Size: 862 Bytes

Versions: 42

Compression:

Stored size: 862 Bytes

Contents

MagicAddresses.configure do |config|
  
  # Address Owners .. all models that use addresses (name + class_name => {users: "User", things: "Namespace::Thing"}) 
  config.address_owners = { users: "User", companies: "Company" }
  # in which locales addresses should be saved
  config.active_locales = [:en, :de]
  # what is the default language (should be :en, except you don't need english at all)
  config.default_locale = :en
  # what is the default country for query
  config.default_country = "Germany"
  # add default country in each query ?
  config.query_defaults = true
  # only save tranlations when differs from default-locale?
  config.uniq_translations = true
  # use a background-process for the lookups ( :none | :sidekiq )
  config.job_backend = :none
  # use a postgres earthdistance for distance calculation
  config.earthdistance = false
  
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
magic_addresses-0.0.44 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.43 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.42 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.41 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.40 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.39 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.39.rc8 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.39.rc7 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.39.rc6 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.39.rc5 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.39.rc4 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.39.rc3 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.39.rc2 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.39.rc1 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.38 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.38.beta2 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.38.beta1 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.37 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.36 spec/dummy/config/initializers/magic_addresses.rb
magic_addresses-0.0.35 spec/dummy/config/initializers/magic_addresses.rb