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