lib/grape/api.rb in grape-1.5.1 vs lib/grape/api.rb in grape-1.5.2
- old
+ new
@@ -85,10 +85,10 @@
super
end
end
# The remountable class can have a configuration hash to provide some dynamic class-level variables.
- # For instance, a descripcion could be done using: `desc configuration[:description]` if it may vary
+ # For instance, a description could be done using: `desc configuration[:description]` if it may vary
# depending on where the endpoint is mounted. Use with care, if you find yourself using configuration
# too much, you may actually want to provide a new API rather than remount it.
def mount_instance(**opts)
instance = Class.new(@base_parent)
instance.configuration = Grape::Util::EndpointConfiguration.new(opts[:configuration] || {})