File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module Grape
5
5
# should subclass this class in order to build an API.
6
6
class API
7
7
# Class methods that we want to call on the API rather than on the API object
8
- NON_OVERRIDABLE = %i[ call call! configuration compile! inherited recognize_path ] . freeze
8
+ NON_OVERRIDABLE = %i[ call call! configuration compile! inherited recognize_path to_s ] . freeze
9
9
10
10
Helpers = Grape ::DSL ::Helpers ::BaseHelper
11
11
@@ -51,7 +51,7 @@ def initial_setup(base_instance_parent)
51
51
52
52
# Redefines all methods so that are forwarded to add_setup and be recorded
53
53
def override_all_methods!
54
- ( base_instance . methods - Class . methods - NON_OVERRIDABLE ) . each do |method_override |
54
+ ( base_instance . singleton_methods - NON_OVERRIDABLE ) . each do |method_override |
55
55
define_singleton_method ( method_override ) do |*args , &block |
56
56
add_setup ( method : method_override , args : args , block : block )
57
57
end
You can’t perform that action at this time.
0 commit comments