Sha256: 1d35c7846074771a33ecbcbc8b9077a020bd1cf42ac5a4d272e8470112d90b1d

Contents?: true

Size: 848 Bytes

Versions: 20

Compression:

Stored size: 848 Bytes

Contents

MagicAddresses.configure do |config|
  # Address Owners .. all models that use addresses (name + class_name => {users: "User", things: "Namespace::Thing"}) 
  config.address_owners     = {}
  # 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  = false
  # use background-process for the lookups ( :none | :sidekiq )
  config.job_backend        = :none
  # use postgres earthdistance for distance calculation
  config.earthdistance      = false
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
magic_addresses-0.0.32 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.31 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.30 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.29 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.28 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.27 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.26 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.25 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.24 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.23 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.22 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.21 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.20 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.19 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.18 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.17 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.16 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.15 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.14 lib/generators/magic_addresses/templates/magic_initializer.rb
magic_addresses-0.0.13 lib/generators/magic_addresses/templates/magic_initializer.rb