Created
March 30, 2012 09:20
-
-
Save latentflip/2250248 to your computer and use it in GitHub Desktop.
Can you spot the deliberate mistake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def attributes_from_bill_json(json) | |
accounting_category = find_accounting_category(json['category']), | |
{ | |
:accounting_category => accounting_category, | |
:project_name => find_project_name(json['project']), | |
:contact => find_contact(json['contact']) | |
} | |
end | |
bill.update_attributes(attributes_from_bill_json(json)) #=> raises "undefined method 'stringify_keys!' for Array"?? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment