{"action":"opened","issue":{"url":"https://api.github.com/repos/brycesenz/validates_serialized/issues/1","labels_url":"https://api.github.com/repos/brycesenz/validates_serialized/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/brycesenz/validates_serialized/issues/1/comments","events_url":"https://api.github.com/repos/brycesenz/validates_serialized/issues/1/events","html_url":"https://github.com/brycesenz/validates_serialized/issues/1","id":53505968,"number":1,"title":"Valdiateable Objects don't delegate correctly.","user":{"login":"brycesenz","id":624100,"avatar_url":"https://avatars.githubusercontent.com/u/624100?v=3","gravatar_id":"","url":"https://api.github.com/users/brycesenz","html_url":"https://github.com/brycesenz","followers_url":"https://api.github.com/users/brycesenz/followers","following_url":"https://api.github.com/users/brycesenz/following{/other_user}","gists_url":"https://api.github.com/users/brycesenz/gists{/gist_id}","starred_url":"https://api.github.com/users/brycesenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brycesenz/subscriptions","organizations_url":"https://api.github.com/users/brycesenz/orgs","repos_url":"https://api.github.com/users/brycesenz/repos","events_url":"https://api.github.com/users/brycesenz/events{/privacy}","received_events_url":"https://api.github.com/users/brycesenz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/brycesenz/validates_serialized/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-06T11:31:08Z","updated_at":"2015-01-06T11:31:08Z","closed_at":null,"body":"I thought I'd fixed this in 0.0.4, but ValidateableObjects, ValidateableHashes, and ValidateableArrayValues don't handle delegation correctly.\r\n\r\nFor example, in another Rails app I'm validating nested (serialized) properties on an ActiveRecord object, and I get the following error:\r\n\r\n  undefined method `_callback_before_12055' for {:type=>nil, :payment=>400, :employer_name=>\"Acme\"}:Hash\r\n\r\nThat is because the Hash is not passing that callback onto the object it represents."}}