# File lib/reactive_resource/base.rb, line 94 def load(attributes, remove_root=false) attributes = attributes.stringify_keys self.class.belongs_to_with_parents.each do |belongs_to_param| attributes["#{belongs_to_param}_id"] ||= prefix_options["#{belongs_to_param}_id".intern] # also set prefix attributes as real attributes. Otherwise, # belongs_to attributes will be stripped out of the response # even if we aren't actually using the association. @attributes["#{belongs_to_param}_id"] = attributes["#{belongs_to_param}_id"] end super(attributes, remove_root) end