Class: Decidim::AccessRequests::Verification::AuthorizationPresenter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
app/presenters/decidim/access_requests/verification/authorization_presenter.rb

Overview

Decorator for access request authorizations.

Class Method Summary collapse

Class Method Details

.for_collection(authorizations) ⇒ Object



10
11
12
# File 'app/presenters/decidim/access_requests/verification/authorization_presenter.rb', line 10

def self.for_collection(authorizations)
  authorizations.map { |authorization| new(authorization) }
end