You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we decided not to rewrite previously defined exposures in #151 then more consistent behavior would be make these cases act identical. It's good to think of presenter exposures (with :using option) as a nested exposures incapsulated in the separate classes.
Ones who want an old rewriting behavior should use conditional exposures (:if, :unless options).
The text was updated successfully, but these errors were encountered:
But maybe it's a not so useful feature as I think. There's also a problem with what to do if represent returns an Array of entities. The possibility of emitting an array makes this feature counterintuitive.
It's also very problematic to implement so I don't plan to do it in #151. Maybe later I'll rethink it.
Suppose this case:
But I assume
info[:gender]
andinfo[:age]
to be exposed too. Also:Since we decided not to rewrite previously defined exposures in #151 then more consistent behavior would be make these cases act identical. It's good to think of presenter exposures (with
:using
option) as a nested exposures incapsulated in the separate classes.Ones who want an old rewriting behavior should use conditional exposures (
:if
,:unless
options).The text was updated successfully, but these errors were encountered: