comfy / comfy/active_link_to

Support overloading parameter based predicate

Open
#64 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
853
Forks
84
PR merge metrics
No merged PRs in 30d

Description

## Summary

The params based `active` predicate can be extended to support overloading param values.

e.g. `active_link_to 'Link', some_path, active: { param: ['one', 'two'] }`

This would allow a link to be active if a specific parameter is either 'one' or 'two'.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.