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

fixed Schema read_attribute when using custom data_field #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jsmilani
Copy link

I was trying to use a custom data field (e.g. serialize_attributes :goals, :blob => :raw_goals) when I encountered a bug in the read_attribute method. It was assuming the field name was data and was raising NameError: undefined local variable or method. I fixed it and added a test for it.

@dwbutler
Copy link
Contributor

I fixed the same issue in #13, but I like that your pull request has tests included!

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.

2 participants