It seems more understandable to just do:
`metadata.each { |attr| post.assign_attributes(attr) }`