her icon indicating copy to clipboard operation
her copied to clipboard

Orm#save fails if an attribute "class" is present

Open ticktricktrack opened this issue 10 years ago • 0 comments

If the json response contains an attribute named class, the getter created around the attribute in https://github.com/remiprev/her/blob/master/lib/her/model/attributes.rb#L55 will mask the model.class method called two lines down. In my case the attribute class was nil.

Adding class to the list of reserved words fixes the issue.

ticktricktrack avatar Oct 01 '15 15:10 ticktricktrack