Sajid Ali
03/04/2022, 10:40 AMgem 'searchkick'
gem 'solidus_searchkick'
when I run this command "*bundle exec rails g solidus_searchkick:install*" I got this error.
in `method_missing': undefined method `parent_name' for PRojectNAME::Application:Class (NoMethodError)Oleksandr Pozniak
03/07/2022, 9:07 AMSajid Ali
03/07/2022, 9:42 AMAndre Schweighofer
03/08/2022, 1:30 PMsolidus_searchkick is not compatible with rails 6.1 because parent_name has been (re)moved. Try this, I think it should be the simplest fix:
# app/models/spree/product_decorator.rb
module Spree
module ProductDecorator
def self.prepended(base)
base.searchkick index_name: "YOUR_APP_NAME_#{Rails.env}", word_start: [:name]
end
Spree::Product.prepend self
end
endSajid Ali
03/14/2022, 8:18 AM