Skip to content

Commit 2401cde

Browse files
feanor07Exelord
authored andcommitted
Add model itself as params to dataForCustomAction (#60)
1 parent 572ac04 commit 2401cde

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

addon/actions/action.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ export default EmberObject.extend({
247247
_dataForCustomAction(data) {
248248
let actionId = this.get('id');
249249
let modelId = this.get('model.id');
250+
let model = this.get('model');
250251

251-
return this.get('adapter').dataForCustomAction({ data, actionId, modelId });
252+
return this.get('adapter').dataForCustomAction({ data, actionId, modelId, model });
252253
}
253254
});

0 commit comments

Comments
 (0)