Nick Sutterer
Nick Sutterer
Waaiiit a second... are you talking about rendering or parsing??
Ah, I guess I understand now. If you just extend an object with a representer, the default doesn't get "triggered". A representer's job is solely acting on `to_format` and `from_format`,...
Weird, can you find a test case in Representable that proofs this actually does work?
I am pretty sure that `defaults` are not propagated into nested representers. It would make sense here, but could also be problematic in other cases, so maybe we need an...
@barttenbrinke I've heard that several times and my apologies for providing gems that suit more than one client's requirements. I'm totally fine when people copy the concept of a representer...
Honestly, I don't get it. People use my gems, find the idea good but then rewrite it because "the original version is _over-engineered_." They usually end up with a subset...
Thanks @barttenbrinke sorry I had a shit day yesterday and might have over-reacted a bit. :heart: Great points - I start to understand how you use Roar with DCI and...
From your code I can see that you're overusing the Representer layer. Keep in mind, this is not a data mapper (evidenced by your use of `setter` and `reader` and...
1. Interesting problem! :grimacing: What about this? ``` ruby class CustomerRepresenter < Representable::Decorator property :name property :address, decorator: AddressRepresenter def to_hash(*) super(confirmed: confirmed?) end end ``` 2. The goal of...
Awesome, good to hear you are using operations! :laughing: What you pasted is 100% correct. You can actually infer twins from representers and vice-versa, but in your case, this looks...