Sha256: 9ff5baf50715f593e681006e6353fbdceaddd5e78eb40e615eeb8940af0f65f9

Contents?: true

Size: 505 Bytes

Versions: 8

Compression:

Stored size: 505 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_and_valid?)
      end

      def meetings
        model
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
decidim-meetings-0.25.2 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.25.1 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.25.0 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.25.0.rc4 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.25.0.rc3 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.25.0.rc2 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.25.0.rc1 app/cells/decidim/meetings/meetings_map_cell.rb
decidim-meetings-0.24.3 app/cells/decidim/meetings/meetings_map_cell.rb