podemos-info/participa2

View on GitHub
config/initializers/decidim.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

Decidim.configure do |config|
  config.application_name = "Portal de Participación"
  config.mailer_sender = "noreply@podemos.info"

  # Change this line to set your preferred locales
  config.available_locales = [:ca, :es, :eu, :gl]
  config.default_locale = :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
end

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

Decidim.content_blocks.register(:homepage, :highlighted) do |content_block|
  content_block.cell = "content_blocks/highlighted"
  content_block.public_name_key = "content_blocks.highlighted.name"
end