Skip to content

Commit

Permalink
šŸ”€ Merge pull request #57 from Coding-Cactus/fix-settings-page-after-vā€¦
Browse files Browse the repository at this point in the history
ā€¦alidation

šŸ› Fix broken account options page after entering incorrect informā€¦
  • Loading branch information
Coding-Cactus authored Aug 23, 2023
2 parents 025e5de + 615d632 commit 911bc31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/registrations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# frozen_string_literal: true

class RegistrationsController < Devise::RegistrationsController
layout "settings", only: :edit
before_action :set_selected, only: :edit
layout "settings", only: %i[edit update]
before_action :set_selected, only: %i[edit update]

def destroy_pfp
redirect_to new_user_session_path, alert: "You must be signed in to do that." and return unless user_signed_in?
Expand Down

0 comments on commit 911bc31

Please sign in to comment.