File tree 2 files changed +0
-51
lines changed 2 files changed +0
-51
lines changed Original file line number Diff line number Diff line change @@ -48,25 +48,6 @@ def use_adapter?
48
48
end
49
49
end
50
50
51
- # Tries to rescue the exception by looking up and calling a registered handler.
52
- #
53
- # Possibly Deprecated
54
- # TODO: Either Decorate 'exception' and define #handle_error where it is serialized
55
- # For example:
56
- # class ExceptionModel
57
- # include ActiveModel::Serialization
58
- # def initialize(exception)
59
- # # etc
60
- # end
61
- # def handle_error(exception)
62
- # exception_model = ActiveModel::Serializer.build_exception_model({ errors: ['Internal Server Error'] })
63
- # render json: exception_model, status: :internal_server_error
64
- # end
65
- # OR remove method as it doesn't do anything right now.
66
- def rescue_with_handler ( exception )
67
- super ( exception )
68
- end
69
-
70
51
module ClassMethods
71
52
def serialization_scope ( scope )
72
53
self . _serialization_scope = scope
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments