• Markus Koller's avatar
    Rename `subject` to `__subject__` in delegated presenters · 5c896bf8
    Markus Koller authored
    We want to encourage developers to use an explicit named getter instead
    using `presents ..., as: <getter>`, since the `subject` name clashes
    with some model attributes (like in the case of labels), and can be
    confusing in general.
    
    The `__subject__` getter can still be used for generic "internal" use,
    for example when we need to unwrap a presenter in GraphQL's
    `BaseResolver`.
    
    This also removes the need for some `delegator_override` calls in
    presenters.
    5c896bf8
pages_domain_presenter.rb 489 Bytes