Shad Sterling
Shad Sterling
I just found this looking for a way to restore the system clock within a nested block, like ``` Ruby Timecop.travel( some_time ) do Time.now #=> just after some_time Timecop.system...
It's not limited to editing previous posts, I'm seeing tags that appear to work when creating a new post but then fail once posted - e.g. https://mastodon.social/@ShadSterling/110724544542553934
All I was trying to do is effectively delegate `#to_json` to `@table` (but outside of rails, so I don't have the `delegate` helper), in a way that's compatible with `JSON.pretty_generate`....
`@table` is just a `Hash`; the class is based on `OpenStruct`, which doesn't have a `to_json`. I want to be able to just pass all parameters through without knowing what...