Sha256: 74f68c30a53b6dace4644e6468b7e8bb2d8db4149eee7d8588dc3b6eee5df4b6

Contents?: true

Size: 1.74 KB

Versions: 14

Compression:

Stored size: 1.74 KB

Contents

# frozen_string_literal: true

Decidim.configure do |config|
  config.application_name = "My Application Name"
  config.mailer_sender = "change-me@domain.org"

  # Change these lines to set your preferred locales
  config.default_locale = :en
  config.available_locales = [:en, :ca, :es]

  # Geocoder configuration
  # config.geocoder = {
  #   static_map_url: "https://image.maps.cit.api.here.com/mia/1.6/mapview",
  #   here_app_id: Rails.application.secrets.geocoder[:here_app_id],
  #   here_app_code: Rails.application.secrets.geocoder[:here_app_code]
  # }

  # Custom resource reference generator method
  # config.resource_reference_generator = lambda do |resource, feature|
  #   # Implement your custom method to generate resources references
  #   "1234-#{resource.id}"
  # end

  # Currency unit
  # config.currency_unit = "€"

  # The number of reports which an object can receive before hiding it
  # config.max_reports_before_hiding = 3

  # Custom HTML Header snippets
  #
  # The most common use is to integrate third-party services that require some
  # extra JavaScript or CSS. Also, you can use it to add extra meta tags to the
  # HTML. Note that this will only be rendered in public pages, not in the admin
  # section.
  #
  # Before enabling this you should ensure that any tracking that might be done
  # is in accordance with the rules and regulations that apply to your
  # environment and usage scenarios. This feature also comes with the risk
  # that an organization's administrator injects malicious scripts to spy on or
  # take over user accounts.
  #
  config.enable_html_header_snippets = false
end

Rails.application.config.i18n.available_locales = Decidim.available_locales
Rails.application.config.i18n.default_locale = Decidim.default_locale

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
decidim-0.9.3 lib/generators/decidim/templates/initializer.rb
decidim-0.9.2 lib/generators/decidim/templates/initializer.rb
decidim-0.9.1 lib/generators/decidim/templates/initializer.rb
decidim-0.9.0 lib/generators/decidim/templates/initializer.rb
decidim-0.8.4 lib/generators/decidim/templates/initializer.rb
decidim-0.8.3 lib/generators/decidim/templates/initializer.rb
decidim-0.8.2 lib/generators/decidim/templates/initializer.rb
decidim-0.8.1 lib/generators/decidim/templates/initializer.rb
decidim-0.8.0 lib/generators/decidim/templates/initializer.rb
decidim-0.7.4 lib/generators/decidim/templates/initializer.rb
decidim-0.7.3 lib/generators/decidim/templates/initializer.rb
decidim-0.7.2 lib/generators/decidim/templates/initializer.rb
decidim-0.7.1 lib/generators/decidim/templates/initializer.rb
decidim-0.7.0 lib/generators/decidim/templates/initializer.rb