Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ericproulx committed Sep 1, 2024
1 parent 812175f commit e0c1c0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* [#2480](https://github.com/ruby-grape/grape/pull/2480): Fix rescue_from ValidationErrors exception - [@numbata](https://github.com/numbata).
* [#2464](https://github.com/ruby-grape/grape/pull/2464): The `length` validator only takes effect for parameters with types that support `#length` method - [@OuYangJinTing](https://github.com/OuYangJinTing).
* [#2485](https://github.com/ruby-grape/grape/pull/2485): Add `is:` param to length validator - [@dakad](https://github.com/dakad).
* [#2492](https://github.com/ruby-grape/grape/pull/2492): Fix Grape::Endpoint's inspect method - [@ericproulx](https://github.com/ericproulx).
* [#2492](https://github.com/ruby-grape/grape/pull/2492): Fix `Grape::Endpoint#inspect` method - [@ericproulx](https://github.com/ericproulx).
* Your contribution here.

### 2.1.3 (2024-07-13)
Expand Down
8 changes: 4 additions & 4 deletions lib/grape/endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,13 @@ def equals?(endpoint)
(options == endpoint.options) && (inheritable_setting.to_hash == endpoint.inheritable_setting.to_hash)
end

# the purpose of this override is solely for stripping internals when an error occurs while calling
# an endpoint through an api. See #https://github.com/ruby-grape/grape/issues/2398
# Otherwise, it calls super
# The purpose of this override is solely for stripping internals when an error occurs while calling
# an endpoint through an api. See https://github.com/ruby-grape/grape/issues/2398
# Otherwise, it calls super.
def inspect
return super unless env

"#{self.class} in `#{route.origin}' endpoint"
"#{self.class} in '#{route.origin}' endpoint"
end

protected
Expand Down

0 comments on commit e0c1c0a

Please sign in to comment.