Sabo
03/31/2023, 11:50 PMSpree::BackendConfiguration
app/overrides/backend.rb
# frozen_string_literal: true
module Shop::BackendConfigurationDecorator
def self.prepenped(base)
base.preference :frontend_kit_path,
:proc,
default: proc {
->(template_context, kit) {
return unless template_context.spree.respond_to?(:kit_path)
template_context.spree.kit_path(kit)
}
}
end
::Spree::BackendConfiguration.prepend self
end
but I get the error frontend_kit_path preference not defined
Jared Norman
Sabo
04/01/2023, 2:48 PM