Nick Sutterer

Results 675 comments of Nick Sutterer

Ok - that's because the `I18N` module might be included _after_ you defined your method and thus overwrites your beautiful method! I'll go through this soon!

@mbajur Can you add a test for that in a separate `i18n_test.rb` file? You can look up how to write such a test here: https://github.com/apotonick/cells/blob/master/test/url_helper_test.rb#L58

Overally, I'm very happy you address this as I've been trying to make Cells ready for Ruby 3.0. :sun_with_face: I see a problem, however, in our old signatures: we were...

Komm mal hier her https://trailblazer.zulipchat.com @richardboehme :beers:

That's brilliant! But no test? :sob:

@JelF Thanks, into layout test, please. @timoschilling what do you think about this?

Not sure I understand the problem? `ViewModel#call` will `html_safe` the content in Rails, calling the method manually won't. Is that poorly documented?

This is documented here: https://github.com/apotonick/cells#invocation-styles Calling the method manually is not official API and up to you. This is also discussed at the end of chapter 8 in the Trailblazer...