{"comment":{"created_at":"2011-10-26T04:46:02Z","body":"+1, would be nice to use methods like new? and reload on nested resources","updated_at":"2011-10-26T04:46:02Z","url":"https://api.github.com/repos/rails/rails/issues/comments/2526558","id":2526558,"user":{"gravatar_id":"2e26215fbced8c43e3e8fd46c5eb01a6","avatar_url":"https://secure.gravatar.com/avatar/2e26215fbced8c43e3e8fd46c5eb01a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/esfourteen","id":105697,"login":"esfourteen"}},"action":"created","issue":{"number":3107,"created_at":"2011-09-22T21:19:23Z","pull_request":{"diff_url":"https://github.com/rails/rails/pull/3107.diff","patch_url":"https://github.com/rails/rails/pull/3107.patch","html_url":"https://github.com/rails/rails/pull/3107"},"body":"Any nested resources with an ActiveResource object are not persisted so actions such as destroy won't work.\r\nThis patches ActiveResource::Base#load to set any nested resources as persisted.\r\n\r\nI was debating simply passing in true as opposed to attrs.has_key?(resource.primary_key.to_s), thoughts?\r\n\r\nI also changed the setup fixtures keys in load_test.rb to be strings, to avoid calling stringify_keys everywhere (should be working with string keys anyways through ActiveResource).","comments":1,"title":"Fix ActiveResource nested resources not being persisted","updated_at":"2011-10-26T04:46:02Z","url":"https://api.github.com/repos/rails/rails/issues/3107","id":1718142,"assignee":null,"milestone":null,"closed_at":null,"user":{"gravatar_id":"b3e33269ce1d3c9a580bac0f11436cf8","avatar_url":"https://secure.gravatar.com/avatar/b3e33269ce1d3c9a580bac0f11436cf8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/odorcicd","id":13371,"login":"odorcicd"},"html_url":"https://github.com/rails/rails/issues/3107","labels":[],"state":"open"},"legacy":{"issue_id":1718142,"comment_id":2526558}}