Skip to content

Alternate forms of predicate methods #2

@bruce

Description

@bruce

The predicate methods that Nicolas Fouché provided use "#{attribute}_for_#{value}" -- for the examples in the tests, this works fine (medium_for_print). How do we support nice methods for an attribute that is pluralized (eg, roles)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions