Skip to content

Commit df14029

Browse files
committed
Remove unused controller rescue_with_handler
Per #954 (comment) Ref 917, 918
1 parent a66df30 commit df14029

File tree

2 files changed

+0
-51
lines changed

2 files changed

+0
-51
lines changed

lib/action_controller/serialization.rb

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -52,25 +52,6 @@ def use_adapter?
5252
end
5353
end
5454

55-
# Tries to rescue the exception by looking up and calling a registered handler.
56-
#
57-
# Possibly Deprecated
58-
# TODO: Either Decorate 'exception' and define #handle_error where it is serialized
59-
# For example:
60-
# class ExceptionModel
61-
# include ActiveModel::Serialization
62-
# def initialize(exception)
63-
# # etc
64-
# end
65-
# def handle_error(exception)
66-
# exception_model = ActiveModel::Serializer.build_exception_model({ errors: ['Internal Server Error'] })
67-
# render json: exception_model, status: :internal_server_error
68-
# end
69-
# OR remove method as it doesn't do anything right now.
70-
def rescue_with_handler(exception)
71-
super(exception)
72-
end
73-
7455
module ClassMethods
7556
def serialization_scope(scope)
7657
self._serialization_scope = scope

test/action_controller/rescue_from_test.rb

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)