Skip to content

Use bare config accessors - #336

Merged
jarednorman merged 1 commit into
solidusio:mainfrom
SuperGoodSoft:align-config-accessors
Sep 3, 2026
Merged

jarednorman merged 1 commit into
solidusio:mainfrom
SuperGoodSoft:align-config-accessors

Conversation

@jarednorman

Copy link
Copy Markdown
Member

Summary

This is mostly just a consistency thing, but the bare accessors are also ever-so-slightly more performant.

Checklist

Replace Spree::Config[:foo] with the bare accessors.
Both dispatch to the same preferred_foo body; the bare form skips
has_preference!'s array scan and matches the form used by Solidus
core and most of this codebase.

A store that overrides preferred_foo on a configuration class no
longer affects these reads. Nothing in this workspace does that.
@jarednorman
jarednorman force-pushed the align-config-accessors branch from 059880b to 496d2a5 Compare September 3, 2026 16:57
@jarednorman
jarednorman requested a review from a team September 3, 2026 17:39
@jarednorman
jarednorman merged commit a314fac into solidusio:main Sep 3, 2026
1 check passed
@jarednorman
jarednorman deleted the align-config-accessors branch September 3, 2026 21:35
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.

2 participants