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 @@ -52,25 +52,6 @@ def use_adapter?
52
52
end
53
53
end
54
54
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
-
74
55
module ClassMethods
75
56
def serialization_scope ( scope )
76
57
self . _serialization_scope = scope
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments