File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
app/controllers/better_together Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13module BetterTogether
24 class SettingsController < ApplicationController
35 end
Original file line number Diff line number Diff line change 33module BetterTogether
44 module Users
55 # Override default Devise registrations controller
6- class RegistrationsController < ::Devise ::RegistrationsController
6+ class RegistrationsController < ::Devise ::RegistrationsController # rubocop:todo Metrics/ClassLength
77 include DeviseLocales
88
99 skip_before_action :check_platform_privacy
@@ -13,7 +13,7 @@ class RegistrationsController < ::Devise::RegistrationsController
1313 # PUT /resource
1414 # We need to use a copy of the resource because we don't want to change
1515 # the current user in place.
16- def update
16+ def update # rubocop:todo Metrics/AbcSize, Metrics/MethodLength
1717 self . resource = resource_class . to_adapter . get! ( send ( :"current_#{ resource_name } " ) . to_key )
1818 prev_unconfirmed_email = resource . unconfirmed_email if resource . respond_to? ( :unconfirmed_email )
1919
@@ -144,7 +144,7 @@ def after_inactive_sign_up_path_for(resource)
144144 super
145145 end
146146
147- def after_update_path_for ( resource )
147+ def after_update_path_for ( _resource )
148148 better_together . edit_user_registration_path
149149 end
150150
You can’t perform that action at this time.
0 commit comments