Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError: private method `expire_primary_index' called #876

Closed
saiqulhaq opened this issue Feb 13, 2020 · 2 comments
Closed

NoMethodError: private method `expire_primary_index' called #876

saiqulhaq opened this issue Feb 13, 2020 · 2 comments

Comments

@saiqulhaq
Copy link

saiqulhaq commented Feb 13, 2020

I don't know this issue is caused by Identity cache or Draper gem so I post this issue to both repos

https://github.com/Shopify/identity_cache/blob/98dfa6eb13f9af9773e313ac202e83aab87d5eff/lib/identity_cache/parent_model_expiration.rb#L47

def method_missing(method, *args, &block)


File /var/www/app/shared/bundle/ruby/2.5.0/gems/draper-4.0.0/lib/draper/automatic_delegation.rb line 10 in method_missing
File /var/www/app/shared/bundle/ruby/2.5.0/bundler/gems/identity_cache-c4799ac93b48/lib/identity_cache/parent_model_expiration.rb line 47 in block in expire_parent_caches
File /home/app/.rbenv/versions/2.5.5/lib/ruby/2.5.0/set.rb line 338 in each_key
File /home/app/.rbenv/versions/2.5.5/lib/ruby/2.5.0/set.rb line 338 in each

this was happening when trying to create a record
but succeed after submit my form again

Shopify/identity_cache#441

@springerigor
Copy link
Contributor

@saiqulhaq I guess you need to wait for 4.0.1 or downgrade draper temporary. I encountered a similar problem and patch has already been merged: #875

@saiqulhaq
Copy link
Author

ok thanks

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

No branches or pull requests

2 participants