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

Bugfix for encode_with_override psych extension #609

Closed
wants to merge 1 commit into from

Conversation

ehsanul
Copy link

@ehsanul ehsanul commented Dec 5, 2013

The coder passed toActiveRecord::Base#encode_with does not necessarily have
a tag= method (it may just be a Hash). This causes issues with other callers,
eg https://github.com/Shopify/identity_cache/blob/master/lib/identity_cache/query_api.rb#L140

Fixes #435

The `coder` passed to ActiveRecord::Base#encode_with does not necessarily have
a `tag=` method (it may just be a Hash). This causes issues with other callers,
eg https://github.com/Shopify/identity_cache/blob/master/lib/identity_cache/query_api.rb#L140
@aaronjensen
Copy link

is this patch ok? we have this problem too.

@ehsanul
Copy link
Author

ehsanul commented Feb 24, 2014

@aaronjensen has been working for us in production, but I would feel a lot better myself if this was looked over by the maintainers and merged.

@collectiveidea, does this look alright?

@nearalias
Copy link

@collectiveidea Had to deal with this too in using IdentityCache. Will this be looked at soon?

@fluxsaas
Copy link

thanks for the patch!

@SirRawlins
Copy link

Also having issues with IdentityCache and hoping this patch will resolve it. I'm using DJ using the delayed_job_active_record gem.

Any suggestions on how I can use this patched version of DJ with the AR gem?

@fluxsaas
Copy link

@SirRawlins

change your gemfile to:

 gem 'delayed_job', github: 'MelianLabs/delayed_job'
 gem 'delayed_job_active_record'

@robinroestenburg
Copy link

+1

Thanks for the patch @ehsanul!

@BMorearty
Copy link

This patch would help us, too. Please merge.

@albus522
Copy link
Member

This does not currently merge. Needs to be updated

@BMorearty
Copy link

@albus522 I fixed the merge conflict in #681 since I don't have write access to the MelianLabs repo.

@albus522 albus522 closed this in #681 Aug 7, 2014
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

Successfully merging this pull request may close these issues.

NoMethodError (undefined method `tag=' for #<Hash:0x64c1ac0>)
8 participants