Skip to content

Commit

Permalink
Revert implementation of heartcombo#4375 from fbbergamo/change-status…
Browse files Browse the repository at this point in the history
…-append
  • Loading branch information
rafaelsales committed Mar 7, 2018
1 parent 129c69d commit 45048ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/devise/controllers/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ module Helpers
if respond_to?(:helper_method)
helper_method :warden, :signed_in?, :devise_controller?
end

def append_info_to_payload(payload)
super
payload[:status] ||= 401 unless payload[:exception]
end
end

module ClassMethods
Expand Down Expand Up @@ -83,6 +78,11 @@ def current_#{group_name.to_s.pluralize}
end
METHODS
end

def log_process_action(payload)
payload[:status] ||= 401 unless payload[:exception]
super
end
end

# Define authentication filters and accessor helpers based on mappings.
Expand Down

0 comments on commit 45048ee

Please # to comment.