Module: Decidim::AnonymousProposals::CreateProposalCommandOverrides
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/commands/decidim/anonymous_proposals/create_proposal_command_overrides.rb
Overview
Method overrides to avoid errors when current_user is not present
Instance Method Summary collapse
Instance Method Details
#initialize(form, current_user, coauthorships = nil) ⇒ Object
9 10 11 12 13 14 |
# File 'app/commands/decidim/anonymous_proposals/create_proposal_command_overrides.rb', line 9 def initialize(form, current_user, = nil) @form = form @current_user = current_user @current_user ||= anonymous_group if allow_anonymous_proposals? @coauthorships = end |