lib/grape/api/instance.rb in grape-1.2.0 vs lib/grape/api/instance.rb in grape-1.2.1
- old
+ new
@@ -15,9 +15,13 @@
def base=(grape_api)
@base = grape_api
grape_api.instances << self
end
+ def to_s
+ (base && base.to_s) || super
+ end
+
# A class-level lock to ensure the API is not compiled by multiple
# threads simultaneously within the same process.
LOCK = Mutex.new
# Clears all defined routes, endpoints, etc., on this API.