Skip to content

Commit

Permalink
For now use original self-reg for neuanmeldung
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-illi committed Jun 9, 2024
1 parent d157852 commit 0541da4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/controllers/sac_cas/groups/self_registration_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ def create
super
end

def entry
return super unless [
Group::SektionsNeuanmeldungenNv::Neuanmeldung,
Group::SektionsNeuanmeldungenSektion::Neuanmeldung
].include?(group.class)

@entry ||= SelfRegistration.new(
group: group,
params: params.to_unsafe_h.deep_symbolize_keys
)
end

def model_class
@model_class ||= Groups::SacRegistrationWizards.for(group)
end
Expand Down

0 comments on commit 0541da4

Please sign in to comment.