diff --git a/app/controllers/users/registrations_controller.rb b/app/controllers/users/registrations_controller.rb index 501526f4e..b50f8b9f3 100644 --- a/app/controllers/users/registrations_controller.rb +++ b/app/controllers/users/registrations_controller.rb @@ -4,7 +4,7 @@ class Users::RegistrationsController < Devise::RegistrationsController only: %i(new create new_with_provider create_with_provider) before_action :sign_up_with_provider_enabled?, only: %i(new_with_provider create_with_provider) - layout 'fluid' + layout :layout def avatar user = User.find_by_id(params[:id]) || current_user @@ -292,6 +292,10 @@ class Users::RegistrationsController < Devise::RegistrationsController private + def layout + 'fluid' if action_name == 'edit' + end + def check_captcha if Rails.configuration.x.enable_recaptcha unless verify_recaptcha