Class: Decidim::ActionDelegator::Censuses::InternalUsersForm

Inherits:
Elections::Censuses::InternalUsersForm
  • Object
show all
Defined in:
app/forms/decidim/action_delegator/censuses/internal_users_form.rb

Overview

This class does the same as Decidim::Elections::Censuses::InternalUsersForm but it provides the extra explanations from the authorizer hopefully this will be not needed form Decidim v0.32 onwards

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authorization_statusObject (readonly)

Returns the value of attribute authorization_status.



12
13
14
# File 'app/forms/decidim/action_delegator/censuses/internal_users_form.rb', line 12

def authorization_status
  @authorization_status
end

Instance Method Details

#authorization_handlersObject



14
15
16
# File 'app/forms/decidim/action_delegator/censuses/internal_users_form.rb', line 14

def authorization_handlers
  @authorization_handlers ||= election.census_settings&.fetch("authorization_handlers", {})&.slice(*organization.available_authorizations)
end