Skip to content

Alternate forms of predicate methods #2

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)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions