forked from ruby/gem_rbs_collection
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actionpack: Make the block arg for HTTP routing methods optional (rub…
…y#656) Some methods for routing requires block argument wrongly. This make them optional. Note: I removed the type for `ActionDispatch::Routing::Mapper::Resources#namespace` because it conceals the block argument in spite of bypassing all arguments to `ActionDispatch::Routing::Mapper::Scope`. Before: ``` $ bundle exec rbs -I sig method ActionDispatch::Routing::Mapper namespace ::ActionDispatch::Routing::Mapper#namespace defined_in: ::ActionDispatch::Routing::Mapper::Resources implementation: ::ActionDispatch::Routing::Mapper::Resources accessibility: public types: (untyped path, ?::Hash[untyped, untyped] options) -> untyped at /Users/tkomiya/work/rbs/gem_rbs_collection/gems/actionpack/6.0/_test/.gem_rbs_collection/actionpack/6.0/actionpack-generated.rbs:9625:23...9625:83 ``` After: ``` $ bundle exec rbs -I sig method ActionDispatch::Routing::Mapper namespace ::ActionDispatch::Routing::Mapper#namespace defined_in: ::ActionDispatch::Routing::Mapper::Scoping implementation: ::ActionDispatch::Routing::Mapper::Scoping accessibility: public types: (untyped path, ?::Hash[untyped, untyped] options) { () -> untyped } -> untyped at /Users/tkomiya/work/rbs/gem_rbs_collection/gems/actionpack/6.0/_test/.gem_rbs_collection/actionpack/6.0/actionpack-generated.rbs:9174:23...9174:101 ```
- Loading branch information
Showing
3 changed files
with
224 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.