Commit ef819a7
Make respond_to? work for all keys
On JRuby 9.3 new_ostruct_member! checks if it already knows a new key by
checking the `@table` instance variable, before checking whether a
method is already defined (I assume because it's faster in the common
case), the way `@table` is handled with auto-vivifying values made this
not work properly for nested assignments.
E.g. `config.webxml.rails.env = 'production'` would auto-vivify
config.webxml.rails without defining a singleton method.
On JRuby 9.3 we could scrap method_missing, it has the right behaviour
(i.e. the workaround for #366 added in 9245f4c is no longer
required). Unfortunately it's still required on JRuby 9.21 parent bb68db9 commit ef819a7
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
180 | 183 | | |
181 | 184 | | |
182 | 185 | | |
| |||
0 commit comments