-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggest crumb.last? #41
Comments
Hi David, Thanks for posting this issue. The history of this gem is long and convoluted, but it held up pretty well over the decade I used it. Unfortunately, I will have to respectfully decline your request to add a new API method. This is what the To make things less confusing, especially to newcomers to the gem, I would be inclined to change the default matching to |
Based on the README example for Bootstrap, and no other documentation about what |
I see that you're referencing |
Are you in the right place?
Yes
Describe the problem
When you first jump in to loaf and start working with it,
crumb.current?
isn't very self-explanatory. You would expectcrumb.current?
to betrue
for the last breadcrumb. That's not really the case because it is working with the:match
condition.Steps to reproduce the problem
n/a
Actual behavior
Works as expects but with a suggested improvement
Expected behavior
Expected
crumb.current?
to betrue
for the last breadcrumb. Had to read into what:match
was doing.Describe your environment
Suggested action
I suggest
crumb.last?
to be added to the items in thebreadcrumb_trail
object. The last breadcrumb would setcrumb.last?
totrue
. All other objects would be set tofalse
.The text was updated successfully, but these errors were encountered: