Skip to content

fixed Schema read_attribute when using custom data_field#12

Open
jsmilani wants to merge 1 commit intotechnoweenie:masterfrom
JIFFinc:master
Open

fixed Schema read_attribute when using custom data_field#12
jsmilani wants to merge 1 commit intotechnoweenie:masterfrom
JIFFinc:master

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