Skip to content

Commit 8514ff8

Browse files
authored
Call .new on the service before calling .call (#620)
1 parent ac932b3 commit 8514ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/users_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def generate_facilitator
8888
if @user.facilitator.present?
8989
redirect_to @user.facilitator and return
9090
else
91-
@facilitator = FacilitatorFromUserService(user: @user).call
91+
@facilitator = FacilitatorFromUserService.new(user: @user).call
9292
if @facilitator.save
9393
redirect_to @facilitator, notice: "Facilitator was successfully created for this user." and return
9494
else

0 commit comments

Comments
 (0)