{"action":"created","issue":{"url":"https://api.github.com/repos/dockyard/ember-validations/issues/222","labels_url":"https://api.github.com/repos/dockyard/ember-validations/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/dockyard/ember-validations/issues/222/comments","events_url":"https://api.github.com/repos/dockyard/ember-validations/issues/222/events","html_url":"https://github.com/dockyard/ember-validations/issues/222","id":53928181,"number":222,"title":"Inline Validator 'undefined function'","user":{"login":"joshpfosi","id":3605462,"avatar_url":"https://avatars.githubusercontent.com/u/3605462?v=3","gravatar_id":"","url":"https://api.github.com/users/joshpfosi","html_url":"https://github.com/joshpfosi","followers_url":"https://api.github.com/users/joshpfosi/followers","following_url":"https://api.github.com/users/joshpfosi/following{/other_user}","gists_url":"https://api.github.com/users/joshpfosi/gists{/gist_id}","starred_url":"https://api.github.com/users/joshpfosi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshpfosi/subscriptions","organizations_url":"https://api.github.com/users/joshpfosi/orgs","repos_url":"https://api.github.com/users/joshpfosi/repos","events_url":"https://api.github.com/users/joshpfosi/events{/privacy}","received_events_url":"https://api.github.com/users/joshpfosi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-09T23:22:47Z","updated_at":"2015-01-21T16:47:20Z","closed_at":null,"body":"When trying to inline a custom validator according to the docs:\r\n\r\n    startTime: Em.Validations.validator(function() {\r\n      if (!this.get('newLesson.startTime').match(/\\d\\d\\d\\d-\\d\\d-\\d\\d \\d\\d:\\d\\d/))\r\n        return \"can't be blank\";\r\n      if (this.get('newLesson.inPast'))\r\n        return 'date has occured';\r\n    })\r\n\r\nThis returns `undefined is not a function`. Specifically, `Em.Validations` or `Em.Validations.Mixin` or `EmberValidations.Mixin` all do not have a `validator` option that I can tell. Am I using it wrong? I am using the `ember-validations-rails` wrapper gem for your library but I have received no response there so I'm hoping you guys might have an idea.\r\n"},"comment":{"url":"https://api.github.com/repos/dockyard/ember-validations/issues/comments/70873129","html_url":"https://github.com/dockyard/ember-validations/issues/222#issuecomment-70873129","issue_url":"https://api.github.com/repos/dockyard/ember-validations/issues/222","id":70873129,"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-01-21T16:47:20Z","updated_at":"2015-01-21T16:47:20Z","body":"Inline validators are only supported on 2.x, which is ember-cli only. It appears you are on Ember 1.x so this API does not exist. master branch's README does not reflect 1.x's"}}