Sha256: 23b3fd02d5761fba3ca1b05dadd036243f57774cdc718911e97853bd153a2362

Contents?: true

Size: 495 Bytes

Versions: 13

Compression:

Stored size: 495 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    class MeetingsMapCell < MeetingMCell
      include Decidim::MapHelper
      include Decidim::Meetings::MapHelper

      delegate :snippets, to: :controller

      def show
        return unless Decidim::Map.available?(:geocoding, :dynamic)

        render
      end

      def geocoded_meetings
        @geocoded_meetings ||= meetings.select(&:geocoded?)
      end

      def meetings
        model
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-meetings-0.23.6 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.24.2 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.23.5 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.24.1 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.24.0 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.24.0.rc2 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.23.4 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.24.0.rc1 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.23.3 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.23.2 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.23.1 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.23.1.rc1 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.23.0 app/cells/decidim/meetings/meetings_map_cell.rb