Skip to content

Release 2.2.0 - #52

Merged
czj merged 1 commit into
mainfrom
release/v2.2.0
Nov 6, 2026
Merged

czj merged 1 commit into
mainfrom
release/v2.2.0

Conversation

@czj

@czj czj commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

A trail class can turn off derived trails with derive_trails false, and a derived level labels a record without its own to_s "Invoice 12" instead of #<Invoice:0x…>.

New

  • derive_trails false in a trail class, for apps that want only the trails they write, as with gretel: a view without a breadcrumb call gets an empty breadcrumb_trail and a nil breadcrumb_json_ld. Subclasses inherit it and derive_trails true turns it back on. In such a class, Crumbly.verify! reports a crumb that only a derived trail would read as unused, and Crumbly::Oracle.redundant_calls lists nothing.

Fixed

  • A derived level whose record's model doesn't define to_s is labelled with the translated model name and id, "Invoice 12", instead of Ruby's #<Invoice:0x000…>. A model's own to_s still wins.

Once merged, bin/release tags the merge commit v2.2.0, which publishes the gem.

@czj
czj enabled auto-merge (squash) November 6, 2026 14:23
@czj
czj merged commit 8768ef5 into main Nov 6, 2026
11 checks passed
@czj
czj deleted the release/v2.2.0 branch November 6, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant