Nick Sutterer

Results 675 comments of Nick Sutterer

Hm, when you copy it, it should work. I will re-add twin support when I release Disposable.

It works without twin, here's the proof: https://github.com/apotonick/cells/blob/master/test/public_test.rb#L35 :stuck_out_tongue_winking_eye: Can you paste some code, I'm curious to know how you use twins?

Yeah, that's exactly how it's meant to work. :grimacing: You should use a representer to compile your `to_hash` hash with Representable. You can infer a representer from a twin.

But it only breaks with `Twin` included, right?

I know, I know, I have to rewrite `Twin` for cells anyway.

This will dramatically slow down rendering collections! Hash operations are expensive!

Currently, the context is "global".

Is that a Cucumber test that only tests a cell in isolation, or retrieves the page via the controller, e.g. `GET /comments`?

@thedanielhanke Are you very very very sure that this is the case? This would mean that [the override in `call`](https://github.com/trailblazer/cells-rails/blob/master/lib/cell/rails.rb#L54) works, but the `ViewModel#to_s` method is not invoked. Can anyone...

Yepp, the newer versions of cells-rails do not support several helpers of Rails anymore that use global state buffering. We're sorry for the inconvenience but those few "helpers" would dramatically...