You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When starting Solidus with the solidus_subscriptions gem, we get a deprecation warning:
DEPRECATION WARNING: Passing sections to Spree::BackendConfiguration::MenuItem is deprecated. Please pass a label instead. (called from new at /home/erwin/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/bundler/gems/solidus_subscriptions-1149f416b1be/lib/solidus_subscriptions/engine.rb:43)
DEPRECATION WARNING: Passing icon to Spree::BackendConfiguration::MenuItem is deprecated. Please use the keyword argument instead. (called from new at /home/erwin/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/bundler/gems/solidus_subscriptions-1149f416b1be/lib/solidus_subscriptions/engine.rb:43)
Additional context
Not a major issue. Just would be a better experience for new developers and existing developers to update this and clear the warning on rails server startup.
Fix
I think if you just change the structure to the following, it should work and clear the deprecation notice:
When starting Solidus with the
solidus_subscriptions
gem, we get a deprecation warning:Looks like this comes from:
solidus_subscriptions/lib/solidus_subscriptions/engine.rb
Line 43 in 1149f41
Per the Solidus documentation, seems the format has changed to:
https://guides.solidus.io/customization/customizing-the-backend#adding-new-menu-items
Solidus Version:
4.2.3
Additional context
Not a major issue. Just would be a better experience for new developers and existing developers to update this and clear the warning on rails server startup.
Fix
I think if you just change the structure to the following, it should work and clear the deprecation notice:
The text was updated successfully, but these errors were encountered: