Sha256: 016387610c95a11e408ece168e869bf831b5bdb69862e63e068f65454bfb3fdb
Contents?: true
Size: 762 Bytes
Versions: 1
Compression:
Stored size: 762 Bytes
Contents
# frozen_string_literal: true module Decidim module DecidimAwesome module MapComponent class MapController < DecidimAwesome::MapComponent::ApplicationController helper Decidim::DecidimAwesome::MapHelper helper_method :map_components def show render :error if Decidim.geocoder.blank? end private def map_components @map_components ||= current_participatory_space.components.published.filter do |component| case component.manifest.name when :meetings true when :proposals component.settings.geocoding_enabled else false end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-decidim_awesome-0.5.1 | app/controllers/decidim/decidim_awesome/map_component/map_controller.rb |