Sha256: 2af526ca1b7495a3af584b3e245033200f9f1f62c36d7ff4aac1bb7cb5ffee5c

Contents?: true

Size: 358 Bytes

Versions: 85

Compression:

Stored size: 358 Bytes

Contents

# frozen_string_literal: true

module Decidim
  #
  # Decorator for initiatives
  #
  class InitiativePresenter < SimpleDelegator
    def author
      @author ||= if user_group
                    Decidim::UserGroupPresenter.new(user_group)
                  else
                    Decidim::UserPresenter.new(super)
                  end
    end
  end
end

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
decidim-initiatives-0.20.1 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.20.0 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.19.1 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.18.1 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.19.0 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.17.2 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.18.0 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.17.1 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.16.1 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.17.0 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.16.0 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.15.2 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.15.1 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.15.0 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.14.4 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.14.3 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.14.2 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.14.1 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.13.1 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.12.2 app/presenters/decidim/initiative_presenter.rb