Sha256: cfb7133414e0e90463693c88687b61150f2ae035dc133467de6f74f751518f2d

Contents?: true

Size: 577 Bytes

Versions: 44

Compression:

Stored size: 577 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Votings
    #
    # Decorator for polling station
    #
    class PollingStationPresenter < SimpleDelegator
      include Decidim::SanitizeHelper
      include Decidim::TranslatableAttributes

      def polling_station
        __getobj__
      end

      def title
        content = translated_attribute(polling_station.title)
        decidim_html_escape(content)
      end

      def address
        content = translated_attribute(polling_station.address)
        decidim_html_escape(content)
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
decidim-elections-0.28.4 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.27.9 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.28.3 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.27.8 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.28.2 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.27.7 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.28.1 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.27.6 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.26.10 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.26.9 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.28.0 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.27.5 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.28.0.rc5 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.28.0.rc4 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.26.8 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.27.4 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.27.3 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.26.7 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.26.5 app/presenters/decidim/votings/polling_station_presenter.rb
decidim-elections-0.27.2 app/presenters/decidim/votings/polling_station_presenter.rb