Skip to content

Can not filter attributes dymically? #1245

Closed
@groe

Description

@groe

In version 0.8.x it was possible to dynamically exclude certain attributes by implementing include_<name>? and returning false. In 0.9.x the same could be achieved with the filter(keys) method. For 0.10.0.rc3 this SO answer suggests overwriting the attributes method but that requires the attribute to exist anyway (and it is fetched always, even when excluded, which is not ideal from a performance point of view).

What is the recommended way to filter attributes (e.g. based on the current user, or options passed from the view) in 0.10.0.rc3 using the standard attributes adapter?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions