Commit 76c4663
committed
Fix Namespace.current to show its caller's namespace
Calling rb_current_namespace() in rb_namespace_current() means to show
the definition namespace of Namespace.current itself (it's the root always)
but the users' expectation is to show the namespace of the place where
the Namespace.current is called.1 parent 4f47327 commit 76c4663
3 files changed
+16
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| 302 | + | |
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
| 458 | + | |
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
463 | 464 | | |
464 | 465 | | |
465 | 466 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3052 | 3052 | | |
3053 | 3053 | | |
3054 | 3054 | | |
3055 | | - | |
| 3055 | + | |
| 3056 | + | |
| 3057 | + | |
3056 | 3058 | | |
3057 | | - | |
3058 | | - | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
| 3062 | + | |
3059 | 3063 | | |
3060 | | - | |
3061 | | - | |
| 3064 | + | |
| 3065 | + | |
| 3066 | + | |
| 3067 | + | |
| 3068 | + | |
| 3069 | + | |
3062 | 3070 | | |
3063 | 3071 | | |
3064 | 3072 | | |
| |||
0 commit comments