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
class Model
include Mongoid::Document
include Mongoid::Attributes::Dynamic
include Elasticsearch::Model
def as_indexed_json(_options = {})
as_json(only: %w[id name product_id product_variant_id])
end
end
The text was updated successfully, but these errors were encountered:
I opened a PR with a fix for this. If you're impatient, you can update your Gemfile entry for elasticsearch-model to use the fix before they merge the fix and release a new version:
Under db/seeds.rb
Model.__elasticsearch__.create_index! force: true
$ bundle exec rspec --backtrace
Backtrace
Model
The text was updated successfully, but these errors were encountered: