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.29.1 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.28.4 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.27.9 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.29.0 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.28.3 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.27.8 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.29.0.rc4 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.29.0.rc3 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.29.0.rc2 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.29.0.rc1 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.28.2 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.27.7 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.28.1 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.27.6 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.26.10 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.26.9 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.28.0 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.27.5 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.28.0.rc5 app/presenters/decidim/initiative_presenter.rb
decidim-initiatives-0.28.0.rc4 app/presenters/decidim/initiative_presenter.rb