{"action":"created","issue":{"url":"https://api.github.com/repos/dockyard/ember-validations/issues/261","labels_url":"https://api.github.com/repos/dockyard/ember-validations/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/dockyard/ember-validations/issues/261/comments","events_url":"https://api.github.com/repos/dockyard/ember-validations/issues/261/events","html_url":"https://github.com/dockyard/ember-validations/issues/261","id":58607571,"number":261,"title":"Failing \"presence\" validation when the property is a typeof \"object\"","user":{"login":"bosschuyler","id":4219764,"avatar_url":"https://avatars.githubusercontent.com/u/4219764?v=3","gravatar_id":"","url":"https://api.github.com/users/bosschuyler","html_url":"https://github.com/bosschuyler","followers_url":"https://api.github.com/users/bosschuyler/followers","following_url":"https://api.github.com/users/bosschuyler/following{/other_user}","gists_url":"https://api.github.com/users/bosschuyler/gists{/gist_id}","starred_url":"https://api.github.com/users/bosschuyler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bosschuyler/subscriptions","organizations_url":"https://api.github.com/users/bosschuyler/orgs","repos_url":"https://api.github.com/users/bosschuyler/repos","events_url":"https://api.github.com/users/bosschuyler/events{/privacy}","received_events_url":"https://api.github.com/users/bosschuyler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-02-23T16:11:58Z","updated_at":"2015-02-23T16:55:21Z","closed_at":"2015-02-23T16:55:21Z","body":"I have validation checking for the existence of an object at the end of one of my forms.  I added console logging to the Ember.Validations for the \"presence\" validator to give me details about it's check.\r\n\r\nThis is what I'm logging:\r\n   \r\n     console.log(this.model);\r\n     console.log(this.property);\r\n     console.log(get(this.model, this.property));\r\n     console.log(typeof get(this.model, this.property));\r\n     console.log(Ember.isBlank(get(this.model, this.property)));  \r\n     console.log(Ember.isEmpty(get(this.model, this.property)));\r\n\r\nHere's what I get from the logging:\r\n\r\n     r {container: i, errors: r, dependentValidationKeys: Object, validators: (...), colors: Array[1]…}\r\n     product\r\n     r {container: i, errors: r, dependentValidationKeys: Object, validators: Array[8], original: r…}\r\n     object\r\n     true\r\n     true\r\n\r\nThe odd thing is it only happens on some of my products.  It almost seems like an issue with the Ember.isEmpty function.  it's returning false even though the object exists.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dockyard/ember-validations/issues/comments/75582288","html_url":"https://github.com/dockyard/ember-validations/issues/261#issuecomment-75582288","issue_url":"https://api.github.com/repos/dockyard/ember-validations/issues/261","id":75582288,"user":{"login":"bcardarella","id":18524,"avatar_url":"https://avatars.githubusercontent.com/u/18524?v=3","gravatar_id":"","url":"https://api.github.com/users/bcardarella","html_url":"https://github.com/bcardarella","followers_url":"https://api.github.com/users/bcardarella/followers","following_url":"https://api.github.com/users/bcardarella/following{/other_user}","gists_url":"https://api.github.com/users/bcardarella/gists{/gist_id}","starred_url":"https://api.github.com/users/bcardarella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcardarella/subscriptions","organizations_url":"https://api.github.com/users/bcardarella/orgs","repos_url":"https://api.github.com/users/bcardarella/repos","events_url":"https://api.github.com/users/bcardarella/events{/privacy}","received_events_url":"https://api.github.com/users/bcardarella/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T16:55:21Z","updated_at":"2015-02-23T16:55:21Z","body":"Gotcha, glad to see its resolved. I'll close this issue."}}