Skip to content

Commit

Permalink
Add missing extends to PrivateAPIInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-thatch committed Jul 15, 2024
1 parent 0a29bb9 commit d3eca47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tapioca/dsl/compilers/grape_endpoints.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ def create_api_class
superclass = "::Grape::API::Instance"

api.create_class(APIInstanceClassName, superclass_name: superclass) do |klass|
klass.create_extend(CallbacksMethodsModuleName)
klass.create_extend(RequestResponseMethodsModuleName)
klass.create_extend(RoutingMethodsModuleName)
end
end
Expand Down
4 changes: 4 additions & 0 deletions spec/tapioca/dsl/compilers/grape_endpoints_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ def route_param(param, options = {}, &block); end
end
class PrivateAPIInstance < ::Grape::API::Instance
extend GeneratedCallbacksMethods
extend GeneratedRequestResponseMethods
extend GeneratedRoutingMethods
end
Expand Down Expand Up @@ -210,6 +212,8 @@ def route_param(param, options = {}, &block); end
end
class PrivateAPIInstance < ::Grape::API::Instance
extend GeneratedCallbacksMethods
extend GeneratedRequestResponseMethods
extend GeneratedRoutingMethods
end
Expand Down

0 comments on commit d3eca47

Please sign in to comment.