{"action":"closed","issue":{"url":"https://api.github.com/repos/mike-north/ember-api-actions/issues/68","repository_url":"https://api.github.com/repos/mike-north/ember-api-actions","labels_url":"https://api.github.com/repos/mike-north/ember-api-actions/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/mike-north/ember-api-actions/issues/68/comments","events_url":"https://api.github.com/repos/mike-north/ember-api-actions/issues/68/events","html_url":"https://github.com/mike-north/ember-api-actions/issues/68","id":161373805,"number":68,"title":"Uncaught TypeError: client.ripen is not a function","user":{"login":"jmschelcher","id":6641674,"avatar_url":"https://avatars.githubusercontent.com/u/6641674?v=3","gravatar_id":"","url":"https://api.github.com/users/jmschelcher","html_url":"https://github.com/jmschelcher","followers_url":"https://api.github.com/users/jmschelcher/followers","following_url":"https://api.github.com/users/jmschelcher/following{/other_user}","gists_url":"https://api.github.com/users/jmschelcher/gists{/gist_id}","starred_url":"https://api.github.com/users/jmschelcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmschelcher/subscriptions","organizations_url":"https://api.github.com/users/jmschelcher/orgs","repos_url":"https://api.github.com/users/jmschelcher/repos","events_url":"https://api.github.com/users/jmschelcher/events{/privacy}","received_events_url":"https://api.github.com/users/jmschelcher/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-21T08:12:37Z","updated_at":"2016-06-21T16:43:12Z","closed_at":"2016-06-21T16:43:12Z","body":"Hi,\r\nI'm trying to use ember-api-actions, but when executing the functions I got a \r\n\"Uncaught TypeError: client.ripen is not a function\" error.\r\n\r\nI'm using Ember 2.5.1 and Ember Data 2.6.1\r\n\r\nHere is my model\r\n```javascript\r\n// models/client.js\r\nimport Model from 'ember-data/model';\r\nimport attr from 'ember-data/attr';\r\nimport { hasMany } from 'ember-data/relationships';\r\nimport { memberAction } from 'ember-api-actions';\r\n\r\nexport default Model.extend({\r\n  name: attr('string'),\r\n  sites: hasMany('site'),\r\n\r\n  ripen: memberAction({ path: 'ripen' }),\r\n});\r\n```\r\nIn a template:\r\n```html\r\n<button {{action \"checkStatus\" model.client }}>Check</button>\r\n```\r\n\r\nIn the controller of that template (or in the route, same problem):\r\n```javascript\r\nimport Ember from 'ember';\r\n\r\nexport default Ember.Controller.extend({\r\n    actions: {\r\n        checkStatus: function (client) {\r\n            console.log(client.get('id'));  // => ok object is passed and ID is right\r\n            console.log(client.ripen());    // not a function... :-/\r\n        }\r\n    }\r\n});\r\n```\r\nHere is the error message in the console\r\n```\r\nclient.js:6\r\nUncaught TypeError: client.ripen is not a function\r\ncheckStatus @ client.js:6\r\nsend @ vendor.js:42860\r\nrunRegisteredAction @ vendor.js:39780\r\nrun @ vendor.js:10825\r\nrun @ vendor.js:31286\r\nhandler @ vendor.js:39774\r\n(anonymous function) @ vendor.js:54852\r\ndispatch @ vendor.js:5041\r\nelemData.handle @ vendor.js:4853\r\n```\r\nHow can I debug that ?\r\n\r\nMany thanks"}}
{"actor":{"display_login":"jmschelcher"}}