]> cat aescling's git repositories - mastodon.git/commitdiff
Set InstancePresenter to `Auth::RegistrationsController#create` (#5366)
authorYamagishi Kazutoshi <ykzts@desire.sh>
Fri, 13 Oct 2017 07:35:07 +0000 (16:35 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 13 Oct 2017 07:35:07 +0000 (09:35 +0200)
app/controllers/auth/registrations_controller.rb

index aac3c31ff29582e52083e622ec521ca8f48c11e2..223db96ff240591f71e16cae01e96f4683cc2db8 100644 (file)
@@ -6,7 +6,7 @@ class Auth::RegistrationsController < Devise::RegistrationsController
   before_action :check_enabled_registrations, only: [:new, :create]
   before_action :configure_sign_up_params, only: [:create]
   before_action :set_sessions, only: [:edit, :update]
-  before_action :set_instance_presenter, only: [:new, :update]
+  before_action :set_instance_presenter, only: [:new, :create, :update]
 
   def destroy
     not_found