fixed Schema read_attribute when using custom data_field #12

Open
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

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.

Contributor

dwbutler commented Jan 31, 2013

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